NotQuiteParadise2

Input

class ControllerConfig(deadzone: 'float', axes: 'Mapping[int, GamepadAxes]', hat: 'Mapping[int, Tuple[GamepadButton, GamepadButton]]', buttons: 'Mapping[int, GamepadButton]')[source]

Bases: object

__init__(deadzone: float, axes: Mapping[int, nqp.core.constants.GamepadAxes], hat: Mapping[int, Tuple[nqp.core.constants.GamepadButton, nqp.core.constants.GamepadButton]], buttons: Mapping[int, nqp.core.constants.GamepadButton]) None
axes: Mapping[int, nqp.core.constants.GamepadAxes]
buttons: Mapping[int, nqp.core.constants.GamepadButton]
deadzone: float
hat: Mapping[int, Tuple[nqp.core.constants.GamepadButton, nqp.core.constants.GamepadButton]]
class Input(game: Game)[source]

Bases: object

__init__(game: Game)[source]
reset()[source]

Set all input to false.

soft_reset()[source]

Resets inputs that should only be activated for 1 frame.

unload_chars()[source]
update(delta_time: float)[source]