27#include "utility/event/hand_event.hpp"
29namespace utility::event
50 std::shared_ptr<Event>
create(
void)
const override;
56 std::shared_ptr<HandThumbRestEvent>
createTyped(
void)
const;
61 bool _isTouched {
false };
64 bool _isProximity {
false };
Abstract factory interface for creating events.
Abstract base class for hand events.
Factory for creating HandThumbRestEvent instances.
std::shared_ptr< HandThumbRestEvent > createTyped(void) const
Create a strongly-typed HandThumbRestEvent.
std::shared_ptr< Event > create(void) const override
Create a HandThumbRestEvent as base Event pointer.
HandThumbRestEvent & setProximity(const bool proximity) noexcept
Set proximity state.
bool isProximity(void) const noexcept
Get proximity state.
HandThumbRestEvent(void)
Default constructor.
HandThumbRestEvent & setTouched(const bool touched) noexcept
Set touched state.
bool isTouched(void) const noexcept
Get touched state.