mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
Update keyboard_keys after changing controls in-game
Vanilla commit:
e9b21a7e79
@icomrade we forgot to refresh keyboard_keys after the player changes
their controls in-game. The keyhandler was still using the old
keyboard_keys array since it is only set once at login time. The new
keys they set in-game wouldn't work until they relogged.
This commit is contained in:
@@ -38,6 +38,11 @@ class RscDisplayMission: RscDisplayEmpty
|
||||
idd = 46;
|
||||
onKeyDown = "if (!isNil 'DZ_KeyDown_EH') then {_this call DZ_KeyDown_EH;};"; //assigned much quicker than spawning init_keyboard
|
||||
};
|
||||
class RscDisplayConfigure {
|
||||
onUnload = "if (!isNil 'keyboard_keys') then {keyboard_keys = nil; [controlNull,1,false,false,false] call DZ_KeyDown_EH;};"; //refresh keyboard_keys after changing binds
|
||||
class controlsBackground;
|
||||
class controls;
|
||||
};
|
||||
class RscDisplayChat
|
||||
{
|
||||
idd = 24;
|
||||
@@ -236,7 +241,7 @@ class RscDisplayMain : RscStandardDisplay
|
||||
text = "z\addons\dayz_code\gui\loadingscreen.paa";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
class controls
|
||||
{
|
||||
class CA_Version;
|
||||
|
||||
Reference in New Issue
Block a user