commit ce3c902

uint  ·  2026-06-06 00:51:59 +0000 UTC
parent dec023d
Use MausKey instead of raw keycode in test
1 files changed,  +1, -1
+1, -1
1@@ -9,7 +9,7 @@ void handle_ev(MausEvent* ev, Maus* mw)
2 			maus_close(mw);
3 			exit(EXIT_SUCCESS);
4 		case MAUS_EV_KEY:
5-			if (ev->key.code == 24) { /* quit */
6+			if (ev->key.key == MAUS_KEY_Q) {
7 				maus_close(mw);
8 				exit(EXIT_SUCCESS);
9 			}