Skip to content
Deyan Dobromirov edited this page Oct 6, 2020 · 3 revisions

What does this extension do?

The wiremod Lua extension joystick is designed to be used with Wire Expression2 in mind and implements general functions for manipulating given player class joystick state as well as retrieve control data and other information. Beware of the E2 performance though.

What is the wiremod Joystick API then?

           Class methods             Out   Description 
image:joystickAxisCount(image) image Returns the player enumerator axes count
image:joystickAxisData() image Returns the player axes data array
image:joystickButtonCount(image) image Returns the player enumerator buttons count
image:joystickButtonData() image Returns the player buttons data array
image:joystickCount() image Returns the player enumenators count
image:joystickName(image) image Returns the player enumerator name
image:joystickPOVCount(image) image Returns the player enumerator POV count
image:joystickPOVData() image Returns the player POV data array
image:joystickSetActive(image,image) Toggles the player enumerator active stream state
    General functions      Out   Description 
joystickRefresh() Refreshes the player internal joystick state
joystickSetActive(image,image) Toggles the E2 chip entity enumerator active stream state

Clone this wiki locally