libmame
Public Attributes
LibMame_PerPlayerControlsState Struct Reference

#include <libmame.h>

List of all members.

Public Attributes

int left_joystick_state
int right_joystick_state
int analog_joystick_horizontal_state
int analog_joystick_vertical_state
int spinner_delta
int vertical_spinner_delta
int paddle_state
int vertical_paddle_state
int trackball_horizontal_delta
int trackball_vertical_delta
int lightgun_horizontal_state
int lightgun_vertical_state
int pedal_state
int pedal2_state
int pedal3_state
int normal_buttons_state
int mahjong_buttons_state
int hanafuda_buttons_state
int gambling_buttons_state

Detailed Description

This describes all of the controller values that can be polled by MAME for individual players. One structure of this type for each player is included in the LibMame_AllControlsState structure. Not all values provided in this structure are used for every game; see the LibMame_Get_Game_AllControllers() function for a way to get a description of the set of controls actually used by the currently running game.


Member Data Documentation

This value is the current horizontal position of the analog joystick, mapped to a range from -65536 (full left) to 65536 (full right).

This value is the current vertical position of the analog joystick, mapped to a range from -65536 (full down) to 65536 (full up).

These are the current states of each Gambling button; the flag for a button being set here means that the button is currently pressed, not being set means that the button is currently not pressed. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_GamblingButtonType_XXX).

These are the current states of each Hanafuda button; the flag for a button being set here means that the button is currently pressed, not being set means that the button is currently not pressed. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_HanafudaButtonType_XXX).

These are the current states of the left (or single) joystick; the flag for a joystick diretion being set here means that the joystick is currently pushed in that direction. Each direction is represented by a flag within this value, by the bit numbered (1 << LibMame_JoystickDirection_XXX).

This value is the current horizontal position of the analog joystick, mapped to a range from -65536 (left edge of screen) to 65536 (right edge of screen). Any values outside this range indicates off of the screen if present in either lightgun_horizontal_position_state or lightgun_vertical_position_state.

This value is the current vertical position of the analog joystick, mapped to a range from -65536 (left edge of screen) to 65536 (right edge of screen). Any values outside this range indicates indicates off of the screen if present in either lightgun_horizontal_position_state or lightgun_vertical_position_state.

These are the current states of each Mahjong button; the flag for a button being set here means that the button is currently pressed, not being set means that the button is currently not pressed. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_MahjongButtonType_XXX).

These are the current states of each normal button; the flag for a button being set here means that the button is currently pressed, not being set means that the button is currently not pressed. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_NormalButtonType_XXX).

This value is the current paddle position, mapped to a range from -65536 (full left) to 65536 (full right).

This value is the current second pedal position, mapped to a range from -65536 (not pressed) to 65536 (fully pressed).

This value is the current third pedal position, mapped to a range from -65536 (not pressed) to 65536 (fully pressed).

This value is the current paddle position, mapped to a range from -65536 (not pressed) to 65536 (fully pressed).

These are the current states of the right joystick; the flag for a joystick diretion being set here means that the joystick is currently pushed in that direction. Each direction is represented by a flag within this value, by the bit numbered (1 << LibMame_JoystickDirection_XXX).

This value is the change in position of the spinner since the last time it was polled, mapped to a range from -65536 (furthest possible spin left) to 65536 (furthest possible spin right).

This value is the change in position of the trackball along the horizontal axis since the last time it was polled, mapped to a range from -65536 (furthest possible roll left) 65536 (furthest possible roll right).

This value is the change in position of the trackball along the vertical axis since the last time it was polled, mapped to a range from -65536 (furthest possible roll down) 65536 (furthest possible roll up).

This value is the current vertical paddle position, mapped to a range from -65536 (full left) to 65536 (full right).

This value is the change in position of the vertical spinner since the last time it was polled, mapped to a range from -65536 (furthest possible spin down) to 65536 (furthest possible spin up).


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines