1#ifndef __BINDJOYSTICK_HPP
2#define __BINDJOYSTICK_HPP
4#include "BindUtils.hpp"
78 copyAndOffset(out, &offset, &objID,
sizeof(objID));
79 copyAndOffset(out, &offset, &
x,
sizeof(
x));
80 copyAndOffset(out, &offset, &
y,
sizeof(
y));
81 copyAndOffset(out, &offset, &tag,
sizeof(tag));
82 copyAndOffset(out, &offset, &
cmdId,
sizeof(
cmdId));
89 uint8_t objID = BIND_ID_JOYSTICK;
BindJoystick Class.
Definition BindJoystick.hpp:56
int16_t sX
The joystick's current X-axis position (internal).
Definition BindJoystick.hpp:63
int16_t y
The y-coordinate position of the joystick on the screen.
Definition BindJoystick.hpp:60
int16_t x
The x-coordinate position of the joystick on the screen.
Definition BindJoystick.hpp:59
int16_t dimSize
The dimensions (size) of the joystick.
Definition BindJoystick.hpp:62
uint8_t cmdId
Command identifier to add or refresh the joystick. See the notes for possible cmdId values.
Definition BindJoystick.hpp:61
bool springed
Indicates whether the joystick returns to the center automatically when released.
Definition BindJoystick.hpp:65
uint16_t getBytes(uint8_t *out) override
Serialize the joystick object into bytes.
Definition BindJoystick.hpp:75
int16_t sY
The joystick's current Y-axis position (internal).
Definition BindJoystick.hpp:64
Definition BindView.hpp:22