#include <Joystick.h>
Definition at line 191 of file Joystick.h.
| Enumerator |
|---|
| BUTTON |
|
| AXIS |
|
| POV |
|
| SLIDER |
|
| ALL |
|
Definition at line 194 of file Joystick.h.
| agxSensor::JoystickListener::JoystickListener |
( |
| ) |
|
|
inline |
Default constructor for a joystick listener.
Default listens to all.
Definition at line 211 of file Joystick.h.
| agxSensor::JoystickListener::JoystickListener |
( |
int |
mask | ) |
|
|
inline |
Create joystick listener given a callback mask (default ALL).
- Parameters
-
| mask | - callback mask (e.g., AXIS or (BUTTON | AXIS)) |
Definition at line 218 of file Joystick.h.
| virtual agxSensor::JoystickListener::~JoystickListener |
( |
| ) |
|
|
inlineprotectedvirtual |
| virtual void agxSensor::JoystickListener::addNotification |
( |
| ) |
|
|
inlinevirtual |
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
Called when the manager has a new joystick state.
This means that the value of the axis could be identical between different calls.
- Parameters
-
| state | - current state of the joystick |
| axis | - axis to check |
- Returns
- true if this listener used this axis value (no other listeners will receive this call) - otherwise false
| virtual bool agxSensor::JoystickListener::buttonChanged |
( |
const agxSensor::JoystickState & |
state, |
|
|
int |
button, |
|
|
bool |
down |
|
) |
| |
|
virtual |
Called when button button changed state.
- Parameters
-
| state | - current state of the joystick |
| button | - the button pressed or released |
| down | - true if button is down, otherwise false |
- Returns
- true if this listener used this button (no other listeners will receive this call) - otherwise false
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
- Returns
- the manager managing this listener
Definition at line 290 of file Joystick.h.
| int agxSensor::JoystickListener::getMask |
( |
| ) |
const |
|
inline |
- Returns
- current callback mask
Definition at line 282 of file Joystick.h.
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
Called when POV button pov has changed state.
- Parameters
-
| state | - current joystick state |
| pov | - POV that has changed state (state.pov[pov]) |
- Returns
- true if this listener used this POV value (no other listeners will receive this call) - otherwise false
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
| virtual void agxSensor::JoystickListener::removeNotification |
( |
| ) |
|
|
inlinevirtual |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxSensor::JoystickListener::setMask |
( |
int |
mask | ) |
|
|
inline |
Assign new callback mask to this listener.
- Parameters
-
Definition at line 277 of file Joystick.h.
Called when slider slider has changed state.
- Parameters
-
| state | - current joystick state |
| slider | - slider that has changed state (state.slider[pov]) |
- Returns
- true if this listener used this slider value (no other listeners will receive this call) - otherwise false
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
|
|
mutableprotectedinherited |
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: