JoystickSensor(Sensor)

base classes — bpy_struct, Sensor

class bpy.types.JoystickSensor(Sensor)

Sensor to detect joystick events

axis_direction

The direction of the axis

Type :enum in [‘RIGHTAXIS’, ‘UPAXIS’, ‘LEFTAXIS’, ‘DOWNAXIS’], default ‘RIGHTAXIS’
axis_number

Specify which axis pair to use, 1 is usually the main direction input

Type :int in [1, 2], default 0
axis_threshold

Specify the precision of the axis

Type :int in [0, 32768], default 0
button_number

Specify which button to use

Type :int in [0, 18], default 0
event_type

The type of event this joystick sensor is triggered on

Type :enum in [‘BUTTON’, ‘AXIS’, ‘HAT’, ‘AXIS_SINGLE’], default ‘BUTTON’
hat_direction

Specify hat direction

Type :enum in [‘UP’, ‘DOWN’, ‘LEFT’, ‘RIGHT’, ‘UPRIGHT’, ‘DOWNLEFT’, ‘UPLEFT’, ‘DOWNRIGHT’], default ‘UP’
hat_number

Specify which hat to use

Type :int in [1, 2], default 0
joystick_index

Specify which joystick to use

Type :int in [0, 7], default 0
single_axis_number

Specify a single axis (verticle/horizontal/other) to detect

Type :int in [1, 16], default 0
use_all_events

Triggered by all events on this joysticks current type (axis/button/hat)

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

Itasc(IKParam)

Next topic

Key(ID)