User Tools

Site Tools


en:examples:input:combination_keys_with_combinelist

Combination Keys with CombineList

Config

[MainInput]
KEY_ENTER = Select # ToggleFullScreenMode ;E.g. Enter key is used for two different actions
KEY_RALT  = ToggleFullScreenMode ;Right-Alt and Enter keys are both set for ToggleFullScreenMode 
 
CombineList = ToggleFullScreenMode ;Must be combined to trigger the ToggleFullScreenMode action

Code

if (orxInput_HasBeenActivated("ToggleFullScreenMode")){
    orxDisplay_SetFullScreen(!orxDisplay_IsFullScreen());
}

en/examples/input/combination_keys_with_combinelist.txt · Last modified: 2019/01/19 06:10 (6 years ago) by 127.0.0.1