more keys

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@267 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-11 11:39:41 +00:00
parent 6979c9dcbd
commit 927f9577ca
7 changed files with 38 additions and 1 deletions

View File

@@ -85,6 +85,8 @@ static LRESULT CALLBACK wndproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {
int n = -1;
if(wp == VK_LEFT) n = MwLLKeyLeft;
if(wp == VK_RIGHT) n = MwLLKeyRight;
if(wp == VK_UP) n = MwLLKeyUp;
if(wp == VK_DOWN) n = MwLLKeyDown;
if(n != -1) MwLLDispatch(u->ll, key, &n);
} else if(msg == WM_GETMINMAXINFO) {
if(u->min_set || u->max_set) {

View File

@@ -231,6 +231,10 @@ void MwLLNextEvent(MwLL handle) {
n = MwLLKeyLeft;
} else if(strcmp(str, "Right") == 0) {
n = MwLLKeyRight;
} else if(strcmp(str, "Up") == 0) {
n = MwLLKeyUp;
} else if(strcmp(str, "Down") == 0) {
n = MwLLKeyDown;
}
if(n != -1) MwLLDispatch(handle, key, &n);