Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix pushbutton assignment

  • Loading branch information...
commit 6413391b1a4a207f05f97513bd7068eca8a3cbb0 1 parent fcbd4c3
@sbourdeauducq sbourdeauducq authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/input.c
View
8 src/input.c
@@ -283,22 +283,22 @@ static int handle_btn_event(mtk_event *e, unsigned char *msg)
{
switch(msg[0]) {
case 'A':
- write_press_event(e, MTK_KEY_F9);
+ write_press_event(e, MTK_KEY_F11);
return 1;
case 'B':
write_press_event(e, MTK_KEY_F10);
return 1;
case 'C':
- write_press_event(e, MTK_KEY_F11);
+ write_press_event(e, MTK_KEY_F9);
return 1;
case 'a':
- write_release_event(e, MTK_KEY_F9);
+ write_release_event(e, MTK_KEY_F11);
return 1;
case 'b':
write_release_event(e, MTK_KEY_F10);
return 1;
case 'c':
- write_release_event(e, MTK_KEY_F11);
+ write_release_event(e, MTK_KEY_F9);
return 1;
default:
printf("Unknown button code: %c\n", msg[0]);
Please sign in to comment.
Something went wrong with that request. Please try again.