kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed reversed Enter and ESC keys for Module17
rodzic
22a0d73fbc
commit
3d987a8ae8
|
@ -45,8 +45,8 @@ keyboard_t kbd_getKeys()
|
|||
{
|
||||
keyboard_t keys = 0;
|
||||
|
||||
if(gpio_readPin(ENTER_SW) == 1) keys |= KEY_ESC;
|
||||
if(gpio_readPin(ESC_SW) == 1) keys |= KEY_ENTER;
|
||||
if(gpio_readPin(ENTER_SW) == 1) keys |= KEY_ENTER;
|
||||
if(gpio_readPin(ESC_SW) == 1) keys |= KEY_ESC;
|
||||
if(gpio_readPin(LEFT_SW) == 1) keys |= KEY_LEFT;
|
||||
if(gpio_readPin(RIGHT_SW) == 1) keys |= KEY_RIGHT;
|
||||
if(gpio_readPin(UP_SW) == 1) keys |= KEY_UP;
|
||||
|
|
Ładowanie…
Reference in New Issue