PlayerControl Callbacks 5.1 OC bool int player Number of the player who pressed the control. int control Number of the pressed control, defined as a CON_ constant via PlayerControls.txt. id control_extra Optional id defined with ExtraData in PlayerControls.txt. int x X coordinate for mouse controls. int y Y coordinate for mouse controls. int strength Current strength of the control. For key presses: 0 or 100. For analog stick or trigger movement (state = CONS_Moved): 0 to PLRCON_MaxStrength. bool repeated Whether the call is generated because of a held button. int state State of the key press. Possible values: ConstantDescription CONS_Down Key has been pressed down. CONS_Up Key has been released. Only generated for held keys. CONS_Moved An analog control on a gamepad has been moved. Only generated for held keys.
Called globally for each control command by players. See Player Controls. GetPlayerControlState Player Controls
Luchs2016-02