|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PJoystick.h>
Public Member Functions | |
| PJoystick () | |
| The Standard constructor. | |
| virtual | ~PJoystick () |
| The Standard destructor. | |
| int | GetNumHats () |
| int | GetNumBalls () |
| int | GetNumAxes () |
| int | GetNumButtons () |
| virtual signed int | GetHatState (unsigned int hat)=0 |
| virtual Variant | GetBallState (unsigned int ball)=0 |
| virtual signed int | GetAxisState (unsigned int axis)=0 |
| virtual signed int | GetButtonState (unsigned int button)=0 |
Public Member Functions inherited from PDevice | |
| PDevice () | |
| The Standard constructor. | |
| virtual | ~PDevice () |
| The Standard destructor. | |
| virtual PEBL_DEVICE_TYPE | GetDeviceType () |
| virtual int | GetState (int iface) const |
Public Member Functions inherited from PEBLObjectBase | |
| PEBLObjectBase () | |
| Standard Constructor. | |
| PEBLObjectBase (ComplexDataType cdt) | |
| Standard Constructor. | |
| PEBLObjectBase (const PEBLObjectBase &pob) | |
| virtual | ~PEBLObjectBase () |
| Standard Destructor. | |
| virtual bool | InitializeProperty (std::string name, Variant v) |
| virtual bool | SetProperty (std::string name, Variant v) |
| Variant | GetProperty (std::string) const |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::string | ObjectName () const |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
Protected Attributes | |
| Variant | mName |
| int | mNumHats |
| int | mNumBalls |
| int | mNumAxes |
| int | mNumButtons |
| bool | mIsOpen |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
Definition at line 40 of file PJoystick.h.
| PJoystick::PJoystick | ( | ) |
The Standard constructor.
Definition at line 37 of file PJoystick.cpp.
References CDT_JOYSTICK, and PEBLObjectBase::mCDT.
|
virtual |
|
pure virtual |
Implemented in PlatformJoystick, and PlatformJoystick.
|
pure virtual |
Implemented in PlatformJoystick, and PlatformJoystick.
|
pure virtual |
Implemented in PlatformJoystick, and PlatformJoystick.
|
pure virtual |
Implemented in PlatformJoystick, and PlatformJoystick.
|
inline |
Definition at line 54 of file PJoystick.h.
References mNumAxes.
Referenced by PEBLEnvironment::GetNumJoystickAxes().
|
inline |
Definition at line 53 of file PJoystick.h.
References mNumBalls.
Referenced by PlatformJoystick::GetBallState(), and PEBLEnvironment::GetNumJoystickBalls().
|
inline |
Definition at line 55 of file PJoystick.h.
References mNumButtons.
Referenced by PlatformJoystick::GetButtonState(), and PEBLEnvironment::GetNumJoystickButtons().
|
inline |
Definition at line 52 of file PJoystick.h.
References mNumHats.
Referenced by PlatformJoystick::GetHatState(), and PEBLEnvironment::GetNumJoystickHats().
|
protectedvirtual |
Reimplemented from PDevice.
Reimplemented in PlatformJoystick, and PlatformJoystick.
Definition at line 48 of file PJoystick.cpp.
|
protected |
Definition at line 74 of file PJoystick.h.
Referenced by PlatformJoystick::PlatformJoystick().
|
protected |
Definition at line 68 of file PJoystick.h.
Referenced by PlatformJoystick::PlatformJoystick().
|
protected |
Definition at line 71 of file PJoystick.h.
Referenced by GetNumAxes(), and PlatformJoystick::PlatformJoystick().
|
protected |
Definition at line 70 of file PJoystick.h.
Referenced by GetNumBalls(), and PlatformJoystick::PlatformJoystick().
|
protected |
Definition at line 72 of file PJoystick.h.
Referenced by GetNumButtons(), and PlatformJoystick::PlatformJoystick().
|
protected |
Definition at line 69 of file PJoystick.h.
Referenced by GetNumHats(), and PlatformJoystick::PlatformJoystick().