Use keycodes intead of hardcoded values
Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
This commit is contained in:
parent
92089fc98a
commit
6b259a22e8
20 changed files with 69 additions and 69 deletions
|
|
@ -1198,8 +1198,8 @@ public:
|
|||
{
|
||||
switch (keyCode)
|
||||
{
|
||||
case 0x6B:
|
||||
case 0x20:
|
||||
case KEY_KPADD:
|
||||
case KEY_SPACE:
|
||||
textOverlay->visible = !textOverlay->visible;
|
||||
}
|
||||
}
|
||||
|
|
@ -1264,4 +1264,4 @@ int main(const int argc, const char *argv[])
|
|||
#if !defined(__ANDROID__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue