Reference for Trigger (Joystick)
Discrete state element on a joystick-like device. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Trigger (Joystick)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Structure describing a trigger on a joytstick including push buttons and hats.
Snippet
Get the state of a push button.
joysticks = sketch.get_joysticks()() first_joystick = joysticks[0] push_button = first_joystick.get_trigger('push0') button_state = push_button.get_state()
Availability
Not yet available. Planned for future release.