HID: use TouchDevice for touch pad
This commit is contained in:
parent
61442d6afb
commit
c84e60b470
3 changed files with 15 additions and 4 deletions
|
@ -126,4 +126,10 @@ using AnalogDevice = InputDevice<std::tuple<float, float>>;
|
|||
*/
|
||||
using MotionDevice = InputDevice<std::tuple<Math::Vec3<float>, Math::Vec3<float>>>;
|
||||
|
||||
/**
|
||||
* A touch device is an input device that returns a tuple of two floats and a bool. The floats are
|
||||
* x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed.
|
||||
*/
|
||||
using TouchDevice = InputDevice<std::tuple<float, float, bool>>;
|
||||
|
||||
} // namespace Input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue