Skip to content

Commit

Permalink
Fix #113
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki410 committed Dec 30, 2022
1 parent 18a0952 commit dff9576
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Binary file modified Libs/libcas.libcpp
Binary file not shown.
Binary file modified Libs/libkcasgui.libcpp
Binary file not shown.
10 changes: 5 additions & 5 deletions Libs/src/khicas/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define KEY_CHAR_EXCL 0x21 /* ! */
#define KEY_CHAR_DP 0x2e /* . */
#define KEY_CHAR_EXP 0x0f /* ee */
#define KEY_CHAR_PMINUS 30200 /* - */
#define KEY_CHAR_PMINUS 30200 /* _ */
#define KEY_CHAR_PLUS 43 /* + */
#define KEY_CHAR_MINUS 45 /* - */
#define KEY_CHAR_MULT 42 /* * */
Expand Down Expand Up @@ -142,10 +142,10 @@
#define KEY_CTRL_ALPHA 30007
#define KEY_CTRL_OPTN 30008
#define KEY_CTRL_VARS 30030
#define KEY_CTRL_UP 30018
#define KEY_CTRL_LEFT 30020
#define KEY_CTRL_RIGHT 30021
#define KEY_CTRL_DOWN 30023
#define KEY_CTRL_UP 1
#define KEY_CTRL_DOWN 2
#define KEY_CTRL_LEFT 0
#define KEY_CTRL_RIGHT 3
#define KEY_CTRL_F1 30009
#define KEY_CTRL_F2 30010
#define KEY_CTRL_F3 30011
Expand Down
Binary file modified Libs/src/khicas/libcas.libcpp
Binary file not shown.
Binary file modified Libs/src/khicas/libkcasgui.libcpp
Binary file not shown.
8 changes: 4 additions & 4 deletions System/khicas_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ int GetKey(int *key) {


case KEY_SHIFT:
*key = 0;
*key = -1;
// *key = KEY_CTRL_SHIFT;
if (keyStatus & 1) {
keyStatus &= ~1;
Expand All @@ -264,7 +264,7 @@ int GetKey(int *key) {
break;

case KEY_ALPHA:
*key = 0;
*key = -1;
// *key = KEY_CTRL_ALPHA;

if (keyStatus & 4) {
Expand Down Expand Up @@ -388,15 +388,15 @@ int GetKey(int *key) {
}

default:
*key = 0;
*key = -1;
return KEYREP_NOEVENT;
break;
}

return KEYREP_KEYEVENT;
}

*key = 0;
*key = -1;

return KEYREP_NOEVENT;
}
Expand Down

0 comments on commit dff9576

Please sign in to comment.