y0014984 / Advanced-Equipment

Advanced Equipment is a Arma 3 mod, that brings equipment to life, like laptops and lamps.
Other
25 stars 9 forks source link

Add CAPSLOCK support to armaOS #326

Open y0014984 opened 1 year ago

y0014984 commented 1 year ago

At the moment all keyboard input in treated directly ignoring if CAPSLOCK is currently active. We should enable that feature.

y0014984 commented 1 year ago

I think this is not that hard to implement. We can use a varaible stat stores the current status of capslock. In the fnc_terminal_addEventHandler.sqf we could add some logic to check for current active capslock and then invert the _shift variable. I think everything can be done in this file and we should add that fix to v0.5.2

y0014984 commented 1 year ago

The only unsolveable issue is that we can't sync with the capslock state of the underlying operating system (for example windows). So, if capslock is already active in windows while starting arma, in armaOS capslock would be inactive. The status would be always inverted to the status inside the operating system.