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 14:10 (16 months ago) (external edit)