Skip to content

Commit 4c98501

Browse files
committed
Use windows keybinds so it works in windows as well
1 parent bbbd62d commit 4c98501

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Includes/UserInterface/NCursesKeys.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ static constexpr unsigned int cKeypadRight{118};
1919
static constexpr unsigned int cKeypadUp{120};
2020
static constexpr unsigned int cKeypadCenter{69};
2121

22-
static constexpr unsigned int cCombinedKeypadUp{9990};
23-
static constexpr unsigned int cCombinedKeypadDown{9991};
24-
static constexpr unsigned int cCombinedKeypadLeft{9992};
25-
static constexpr unsigned int cCombinedKeypadRight{9993};
26-
static constexpr unsigned int cCombinedKeypadCenter{9994};
22+
// These keycodes match Windows keycodes so that works as well
23+
static constexpr unsigned int cCombinedKeypadUp{450};
24+
static constexpr unsigned int cCombinedKeypadDown{456};
25+
static constexpr unsigned int cCombinedKeypadLeft{452};
26+
static constexpr unsigned int cCombinedKeypadRight{454};
27+
static constexpr unsigned int cCombinedKeypadCenter{453};

0 commit comments

Comments
 (0)