|
wavelength 1.0.0
|
Input event of an analog stick position. More...
#include <stickevent.h>
Public Member Functions | |
| StickEvent ()=default | |
| Construct an event with unset members. | |
| StickEvent (unsigned char nPlayer, float fX, float fY) | |
| Construct an event. | |
| StickEvent (BinStream &stream) | |
| Construct the event from a recording. | |
| void | Save (BinStream &stream) const |
| Record the player in one byte and each position in four bytes of the console's byte order. | |
| void | Load (BinStream &stream) |
| Read the event Save() records. | |
| float | GetY () const |
| void | SetY (float fY) |
| float | GetX () const |
| void | SetX (float fX) |
| unsigned char | GetPlayer () const |
| void | SetPlayer (unsigned char nPlayer) |
Input event of an analog stick position.
The RTTI includes the template with the arguments 2 and 6. The argument is the identifier of the serializable input command that records the event, and it makes each instance a distinct type. Every member is inline.
| kId | The command identifier. |
|
default |
Construct an event with unset members.
|
inline |
Construct an event.
| nPlayer | The player index. |
| fX | The horizontal position. |
| fY | The vertical position. |
|
inlineexplicit |
Construct the event from a recording.
| stream | The stream to read from. |
|
inline |
Record the player in one byte and each position in four bytes of the console's byte order.
| stream | The stream to write to. |
|
inline |
Read the event Save() records.
| stream | The stream to read from. |
|
inline |
|
inline |
| fY | The vertical position. |
|
inline |
|
inline |
| fX | The horizontal position. |
|
inline |
|
inline |
| nPlayer | The player index. |