Public Types | Public Member Functions | Public Attributes

wiimote_state::classic_controller::buttons Struct Reference

#include <wiimote_state.h>

List of all members.

Public Types

enum  mask {
  TRIG_R = 0x0002, PLUS = 0x0004, HOME = 0x0008, MINUS = 0x0010,
  TRIG_L = 0x0020, DOWN = 0x0040, RIGHT = 0x0080, UP = 0x0100,
  LEFT = 0x0200, _ZR = 0x0400, _X = 0x0800, _A = 0x1000,
  _Y = 0x2000, _B = 0x4000, _ZL = 0x8000, ALL
}

Public Member Functions

bool A () const
bool B () const
bool Plus () const
bool Minus () const
bool Home () const
bool Up () const
bool Down () const
bool Left () const
bool Right () const
bool X () const
bool Y () const
bool ZL () const
bool ZR () const
bool TriggerL () const
bool TriggerR () const

Public Attributes

WORD Bits

Detailed Description

Definition at line 237 of file wiimote_state.h.


Member Enumeration Documentation

Enumerator:
TRIG_R 
PLUS 
HOME 
MINUS 
TRIG_L 
DOWN 
RIGHT 
UP 
LEFT 
_ZR 
_X 
_A 
_Y 
_B 
_ZL 
ALL 

Definition at line 260 of file wiimote_state.h.

                                {
                                TRIG_R  = 0x0002,
                                PLUS    = 0x0004,
                                HOME    = 0x0008,
                                MINUS   = 0x0010,
                                TRIG_L  = 0x0020,
                                DOWN    = 0x0040,
                                RIGHT   = 0x0080,
                                UP      = 0x0100,
                                LEFT    = 0x0200,
                                _ZR     = 0x0400,
                                _X      = 0x0800,
                                _A      = 0x1000,
                                _Y      = 0x2000,
                                _B      = 0x4000,
                                _ZL     = 0x8000,
                                //
                                ALL             = TRIG_R|PLUS|HOME|MINUS|TRIG_L|DOWN|RIGHT|UP|LEFT|
                                                  _ZR|_X|_A|_Y|_B|_ZL,
                                };

Member Function Documentation

bool wiimote_state::classic_controller::buttons::A (  ) const [inline]

Definition at line 240 of file wiimote_state.h.

References _A, and Bits.

{ return (Bits & _A)      != 0; }
bool wiimote_state::classic_controller::buttons::B (  ) const [inline]

Definition at line 241 of file wiimote_state.h.

References _B, and Bits.

{ return (Bits & _B)      != 0; }
bool wiimote_state::classic_controller::buttons::Down (  ) const [inline]

Definition at line 246 of file wiimote_state.h.

References Bits, and DOWN.

{ return (Bits & DOWN)   != 0; }
bool wiimote_state::classic_controller::buttons::Home (  ) const [inline]

Definition at line 244 of file wiimote_state.h.

References Bits, and HOME.

{ return (Bits & HOME)   != 0; }
bool wiimote_state::classic_controller::buttons::Left (  ) const [inline]

Definition at line 247 of file wiimote_state.h.

References Bits, and LEFT.

{ return (Bits & LEFT)   != 0; }
bool wiimote_state::classic_controller::buttons::Minus (  ) const [inline]

Definition at line 243 of file wiimote_state.h.

References Bits, and MINUS.

{ return (Bits & MINUS)  != 0; }
bool wiimote_state::classic_controller::buttons::Plus (  ) const [inline]

Definition at line 242 of file wiimote_state.h.

References Bits, and PLUS.

{ return (Bits & PLUS)   != 0; }
bool wiimote_state::classic_controller::buttons::Right (  ) const [inline]

Definition at line 248 of file wiimote_state.h.

References Bits, and RIGHT.

{ return (Bits & RIGHT)  != 0; }
bool wiimote_state::classic_controller::buttons::TriggerL (  ) const [inline]

Definition at line 253 of file wiimote_state.h.

References Bits, and TRIG_L.

{ return (Bits & TRIG_L) != 0; }
bool wiimote_state::classic_controller::buttons::TriggerR (  ) const [inline]

Definition at line 254 of file wiimote_state.h.

References Bits, and TRIG_R.

{ return (Bits & TRIG_R) != 0; }
bool wiimote_state::classic_controller::buttons::Up (  ) const [inline]

Definition at line 245 of file wiimote_state.h.

References Bits, and UP.

{ return (Bits & UP)     != 0; }
bool wiimote_state::classic_controller::buttons::X (  ) const [inline]

Definition at line 249 of file wiimote_state.h.

References _X, and Bits.

{ return (Bits & _X)      != 0; }
bool wiimote_state::classic_controller::buttons::Y (  ) const [inline]

Definition at line 250 of file wiimote_state.h.

References _Y, and Bits.

{ return (Bits & _Y)      != 0; }
bool wiimote_state::classic_controller::buttons::ZL (  ) const [inline]

Definition at line 251 of file wiimote_state.h.

References _ZL, and Bits.

{ return (Bits & _ZL)     != 0; }
bool wiimote_state::classic_controller::buttons::ZR (  ) const [inline]

Definition at line 252 of file wiimote_state.h.

References _ZR, and Bits.

{ return (Bits & _ZR)     != 0; }

Member Data Documentation

Definition at line 257 of file wiimote_state.h.

Referenced by A(), B(), Down(), Home(), Left(), Minus(), Plus(), Right(), TriggerL(), TriggerR(), Up(), X(), Y(), ZL(), and ZR().


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