mirror of
https://github.com/termux/termux-packages.git
synced 2025-07-06 18:10:36 +00:00
14 lines
629 B
Diff
14 lines
629 B
Diff
This prevents an error during compiling with recent C++ compilers while SDL2 is disabled,
|
|
which was: CIrrDeviceLinux.cpp:682:13: error: assigning to 'EKEY_CODE' from incompatible type 'int'
|
|
--- a/irr/src/CIrrDeviceLinux.cpp
|
|
+++ b/irr/src/CIrrDeviceLinux.cpp
|
|
@@ -693,7 +693,7 @@ EKEY_CODE CIrrDeviceLinux::getKeyCode(XEvent &event)
|
|
keyCode = (EKEY_CODE)KeyMap[idx].Win32Key;
|
|
}
|
|
if (keyCode == 0) {
|
|
- keyCode = KEY_UNKNOWN;
|
|
+ keyCode = (EKEY_CODE)KEY_UNKNOWN;
|
|
if (!mp.X11Key) {
|
|
os::Printer::log("No such X11Key, event keycode", core::stringc(event.xkey.keycode).c_str(), ELL_INFORMATION);
|
|
} else if (idx == -1) {
|