libstratcom  1.1.0
A cross-platform library for interfacing with the Microsoft SideWinder Strategic Commander
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Pages
Data Fields
stratcom_input_state Struct Reference

Combined state of all buttons and axes on the device. More...

#include <stratcom.h>

Data Fields

stratcom_button_word buttons
 Combined state of all buttons. More...
 
stratcom_axis_word axisX
 X-axis state (-512: full left; 0: center; +511: full right). More...
 
stratcom_axis_word axisY
 Y-axis state (-512: full up; 0: center; +511: full down). More...
 
stratcom_axis_word axisZ
 Z-axis state (-512: full left; 0: center; +511: full right). More...
 
stratcom_slider_state slider
 State of the slider. More...
 

Detailed Description

Combined state of all buttons and axes on the device.

This type models the complete state of the device at a fixed point in time. The representation of the values in this type is very compact and you might want to prefer to use one of the more specialized library functions for querying the state of a certain part. Input states are most useful for creating input events from a pair of states, using stratcom_create_input_events_from_states().

See also
stratcom_get_input_state(), stratcom_create_input_events_from_states()

Field Documentation

stratcom_axis_word stratcom_input_state::axisX

X-axis state (-512: full left; 0: center; +511: full right).

stratcom_axis_word stratcom_input_state::axisY

Y-axis state (-512: full up; 0: center; +511: full down).

stratcom_axis_word stratcom_input_state::axisZ

Z-axis state (-512: full left; 0: center; +511: full right).

stratcom_button_word stratcom_input_state::buttons

Combined state of all buttons.

stratcom_slider_state stratcom_input_state::slider

State of the slider.


The documentation for this struct was generated from the following file: