24#ifndef TAPROOT_REMOTE_MAP_STATE_HPP_
25#define TAPROOT_REMOTE_MAP_STATE_HPP_
90 const std::list<tap::communication::serial::Remote::Key> &keySet,
91 const std::list<tap::communication::serial::Remote::Key> &negKeySet,
92 bool mouseButtonLeftPressed,
93 bool mouseButtonRightPressed);
126 const std::list<tap::communication::serial::Remote::Key> &keySet,
127 const std::list<tap::communication::serial::Remote::Key> &negKeySet = {});
141 const std::list<tap::communication::serial::Remote::Key> &keySet,
142 const std::list<tap::communication::serial::Remote::Key> &negKeySet = {});
177 void initKeys(
const std::list<tap::communication::serial::Remote::Key> &keySet);
182 void initNegKeys(
const std::list<tap::communication::serial::Remote::Key> &negKeySet);
262 uint16_t negKeys = 0;
264 bool lMouseButton =
false;
266 bool rMouseButton =
false;
Switch
Definition remote.hpp:73
SwitchState
Definition remote.hpp:82
Definition remote_map_state.hpp:56
tap::communication::serial::Remote::SwitchState getLSwitch() const
Definition remote_map_state.hpp:249
uint16_t getNegKeys() const
Definition remote_map_state.hpp:233
bool getNegKeysUsed() const
Definition remote_map_state.hpp:238
bool getRMouseButton() const
Definition remote_map_state.hpp:247
void initLSwitch(tap::communication::serial::Remote::SwitchState ss)
Definition remote_map_state.cpp:113
bool friend operator!=(const RemoteMapState &rms1, const RemoteMapState &rms2)
tap::communication::serial::Remote::SwitchState getRSwitch() const
Definition remote_map_state.hpp:251
void initNegKeys(uint16_t negKeys)
Definition remote_map_state.cpp:144
void initRSwitch(tap::communication::serial::Remote::SwitchState ss)
Definition remote_map_state.cpp:122
bool getLMouseButton() const
Definition remote_map_state.hpp:245
MouseButton
Definition remote_map_state.hpp:63
@ RIGHT
The right mouse button.
@ LEFT
The left mouse button.
void initRMouseButton()
Definition remote_map_state.cpp:177
bool friend operator==(const RemoteMapState &rms1, const RemoteMapState &rms2)
bool stateSubsetOf(const RemoteMapState &other) const
Definition remote_map_state.cpp:179
void initLMouseButton()
Definition remote_map_state.cpp:175
uint16_t getKeys() const
Definition remote_map_state.hpp:243
void initKeys(uint16_t keys)
Definition remote_map_state.cpp:131
Definition ballistics.cpp:29