50 bool left =
false,
bool right =
false):
x{xx},
y{yy},
61 {
return((
x == oth.x) && (
y == oth.y) &&
67 {
return(!
operator==(oth)); }
71 {
return(std::string(
"Mouse(") + std::to_string(
x) +
"," +
72 std::to_string(
y) +
"; left " +
uint16_t PixelCoord
Represent both x and y screen pix coordinates.
PointingStatus(PixelCoord xx=0, PixelCoord yy=0, bool left=false, bool right=false)
Default constructor.
bool clicked(void) const noexcept
< Return TRUE if any button has been clicked.
std::string to_string(void) const
< Return a text information of the status.
bool operator!=(const PointingStatus &oth) const noexcept
< Return TRUE if there is any difference between them.
bool buttonright
State (TRUE->pressed) of main buttons.
PixelCoord x
Position of the pointing device on the zx screen.
PixelCoord y
Position of the pointing device on the zx screen.
bool buttonleft
State (TRUE->pressed) of main buttons.
bool operator==(const PointingStatus &oth) const noexcept
< Return TRUE if both are exactly the same.
Status of the pointing device.
The main namespace of the library, that spans across all the zx modules.