Skip to content

Commit 818e4d2

Browse files
committed
[apps/external] Fix SCANCODE_OnOff being triggered by the left arrow
1 parent 0fc06fa commit 818e4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/external/extapp_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define SCANCODE_OK ((uint64_t)1 << 4)
2828
#define SCANCODE_Back ((uint64_t)1 << 5)
2929
#define SCANCODE_Home ((uint64_t)1 << 6)
30-
#define SCANCODE_OnOff (((uint64_t)1 << 7) || ((uint64_t)1 << 8))
30+
#define SCANCODE_OnOff (((uint64_t)1 << 7) | ((uint64_t)1 << 8))
3131
#define SCANCODE_Shift ((uint64_t)1 << 12)
3232
#define SCANCODE_Alpha ((uint64_t)1 << 13)
3333
#define SCANCODE_XNT ((uint64_t)1 << 14)

0 commit comments

Comments
 (0)