libmame
|
#include <libmame.h>
Public Attributes | |
int | shared_buttons_state |
int | special_buttons_state |
int | ui_input_state |
This describes all of the controller values that can be polled by MAME for controls that are shared by all players. Not all values provided in this structure are used for every game.
These are the current states of each shared button input; the flag for an input being set here means that the input is currently triggered, not being set means that the input is currently not triggered. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_SharedButtonType_XXX). These are not duplicated per player but instead have only one set of buttons shared across all players.
These are the current states of each special button input; the flag for an input being set here means that the input is currently triggered, not being set means that the input is currently not triggered. Each is represented as a flag within this value, by the bit numbered (1 << LibMame_SpecialButtonType_XXX). These are not duplicated per player but instead have only one set of buttons shared across all players.
This is the current UI input. libmame allows only one UI input at a time. Its value is one of the LibMame_UiButtonType_XXX values.