InputEventJoypadMotion

Inherits: InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for joypad motion/axis events.

Member Functions

int get_axis ( ) const
float get_axis_value ( ) const
void set_axis ( int axis )
void set_axis_value ( float axis_value )

Member Variables

  • int axis - Joypad axis identifier, one of the JOY_AXIS_* constants in [@Global Scope].
  • float axis_value - Position of the axis, ranging from -1.0 to 1.0. A value of 0 means that the axis is in its neutral position.

Member Function Description

  • int get_axis ( ) const
  • float get_axis_value ( ) const
  • void set_axis ( int axis )
  • void set_axis_value ( float axis_value )