Jump to content

[SOLVED] Disable Function Keys


photo

Recommended Posts

Hey Guys, 

 

anyone got a solution for disabling function keys like F1, F3, F6?

I locked the console with (console.setLock(1)) but users can still press F6 "F6 — restore the saved state." is executed, how can i disable this?

 

Didn't find any solution for that

 

Greetings

Lars

Link to comment
engine.controls.setStateKey(CONTROLS_STATE_SAVE,0);
engine.controls.setStateKey(CONTROLS_STATE_RESTORE,0);

Or clear them values in the default config.

 

The default keyboard mapping is performed in the /data/core/scripts/system/system.h file at 1205 line.

Link to comment
×
×
  • Create New...