Package bpy :: Module types :: Class JoystickSensor
[hide private]
[frames] | no frames]

Class JoystickSensor


The Joystick Sensor Object

Sensor to detect joystick events.

(no references to this struct found)

Instance Variables [hide private]
boolean all_events
Triggered by all events on this joysticks current type (axis/button/hat).
enum axis_direction
The direction of the axis.
int in [1, 2] axis_number
Specify which axis pair to use, 1 is usually the main direction input.
int in [0, 32768] axis_threshold
Specify the precision of the axis.
int in [0, 18] button_number
Specify which button to use.
enum event_type
The type of event this joystick sensor is triggered on.
int in [0, 10000] frequence
Delay between repeated pulses(in logic tics, 0=no delay). (Inherited from bpy.types.Sensor)
int in [0, 12] hat_direction
Specify hat direction.
int in [1, 2] hat_number
Specify which hat to use.
boolean invert
Invert the level(output) of this sensor. (Inherited from bpy.types.Sensor)
int in [0, 7] joystick_index
Specify which joystick to use.
boolean level
Level detector, trigger controllers of new states(only applicable upon logic state transition). (Inherited from bpy.types.Sensor)
string name
Sensor name. (Inherited from bpy.types.Sensor)
boolean pulse_false_level
Activate FALSE level triggering (pulse mode). (Inherited from bpy.types.Sensor)
boolean pulse_true_level
Activate TRUE level triggering (pulse mode). (Inherited from bpy.types.Sensor)
enum (readonly) type
Type in... (Inherited from bpy.types.Sensor)
Instance Variable Details [hide private]

axis_direction

The direction of the axis. in...
  • RIGHTAXIS
  • UPAXIS
  • LEFTAXIS
  • DOWNAXIS
Type:
enum

event_type

The type of event this joystick sensor is triggered on. in...
  • BUTTON
  • AXIS
  • HAT
Type:
enum