Skip to content

Commit dab64cf

Browse files
committed
touch enter is now center
1 parent b3fca8a commit dab64cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Arduino_Alvik_Firmware.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ uint8_t Arduino_Alvik_Firmware::getTouchKeys(){
368368
touch_value|=1;
369369
touch_value|=getTouchOk()<<1;
370370
touch_value|=getTouchDelete()<<2;
371-
touch_value|=getTouchEnter()<<3;
371+
touch_value|=getTouchCenter()<<3;
372372
touch_value|=getTouchUp()<<4;
373373
touch_value|=getTouchLeft()<<5;
374374
touch_value|=getTouchDown()<<6;
@@ -394,7 +394,7 @@ bool Arduino_Alvik_Firmware::getTouchLeft(){
394394
}
395395

396396
bool Arduino_Alvik_Firmware::getTouchCenter(){
397-
return getTouchKey(TOUCH_PAD_ENTER);
397+
return getTouchKey(TOUCH_PAD_CENTER);
398398
}
399399

400400
bool Arduino_Alvik_Firmware::getTouchOk(){

src/definitions/pinout_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#define TOUCH_PAD_RIGHT 4
8383
#define TOUCH_PAD_DOWN 9
8484
#define TOUCH_PAD_LEFT 10
85-
#define TOUCH_PAD_ENTER 8
85+
#define TOUCH_PAD_CENTER 8
8686
#define TOUCH_PAD_OK 6
8787
#define TOUCH_PAD_DELETE 5
8888
#define TOUCH_PAD_GUARD 1

0 commit comments

Comments
 (0)