diff --git a/core/linux-dist/main.cpp b/core/linux-dist/main.cpp index 940914365..c11ca5f5d 100755 --- a/core/linux-dist/main.cpp +++ b/core/linux-dist/main.cpp @@ -78,10 +78,12 @@ int msgboxf(const wchar* text, unsigned int type, ...) -u16 kcode[4]; +u16 kcode[4] = {0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF}; +u8 rt[4] = {0, 0, 0, 0}; +u8 lt[4] = {0, 0, 0, 0}; + u32 vks[4]; s8 joyx[4],joyy[4]; -u8 rt[4],lt[4]; enum DCPad { @@ -135,12 +137,6 @@ const u32* JMapAxis=JMapAxis_USB; void SetupInput() { - for (int port=0; port<4; port++) - { - kcode[port]=0xFFFF; - rt[port]=0; - lt[port]=0; - } #if HOST_OS != OS_DARWIN && !defined(TARGET_EMSCRIPTEN) #ifdef TARGET_PANDORA const char* device = "/dev/input/event4";