Fixes #6582
This commit is contained in:
@@ -266,7 +266,11 @@ enum EnumKeys
|
||||
|
||||
#if defined(KEYS_GPIO_PIN_SHIFT)
|
||||
#define IS_SHIFT_KEY(index) (index == KEY_SHIFT)
|
||||
#if defined(SIMU)
|
||||
#define IS_SHIFT_PRESSED() (readKeys() & (1 << KEY_SHIFT))
|
||||
#else
|
||||
#define IS_SHIFT_PRESSED() (~KEYS_GPIO_REG_SHIFT & KEYS_GPIO_PIN_SHIFT)
|
||||
#endif
|
||||
#else
|
||||
#define IS_SHIFT_KEY(index) (false)
|
||||
#define IS_SHIFT_PRESSED() (false)
|
||||
|
||||
Reference in New Issue
Block a user