Reference for get_triggers_available
Get available discrete inputs for a joystick-like device. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
get_triggers_available
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Get available "dicrete inputs" for a joystick-like device which includes push buttons and hats. Sketchingpy refers to these as "triggers" on the device. For example, "push0" refers to the first push button on the device.
Snippet
Get the available triggers on the first joystick found.
joysticks = sketch.get_joysticks() first_joystick = joysticks[0] triggers = first_joystick.get_triggers_available()
Availability
Not yet available. Planned for future release.