23#include "utility/event/hand_button_event.hpp"
25namespace utility::event
29 const Button button)
noexcept
33 return button == Button::X || button == Button::Y
34 || button == Button::Menu;
36 return button == Button::A || button == Button::B
37 || button == Button::System;
43 HandButtonEvent::Factory::~Factory(
void) =
default;
47 return std::make_unique<HandButtonEvent>();
50 std::shared_ptr<HandButtonEvent>
53 return std::make_unique<HandButtonEvent>();
99 std::ostream &operator<<(std::ostream &stream,
128 std::ostream &operator<<(std::ostream &stream,
131 stream <<
"HandButtonEvent("
132 <<
"HandType: " << handButtonEvent.getHandType() <<
", "
133 <<
"Button: " << handButtonEvent.getButton() <<
", "
135 << (handButtonEvent.isTouched() ?
"true" :
"false") <<
", "
137 << (handButtonEvent.isButtonPressed() ?
"true" :
"false") <<
")";
HandType
Hand types for hand events. Defines the type of hand involved in the event (e.g., left or right).
HandType getHandType(void) const noexcept
Get the type of hand involved in the event.