Definitions for libvirtualhid Unix input handling. More...
Functions | |
| platform_caps::caps_t | platf::get_capabilities () |
| Get the supported platform capabilities to advertise to the client. | |
| std::optional< util::point_t > | platf::get_mouse_loc (input_t &input) |
| Get the current mouse position for platform input tests. | |
| std::vector< supported_gamepad_t > & | platf::supported_gamepads (input_t *input) |
| Gets the supported gamepads for this platform backend. | |
Definitions for libvirtualhid Unix input handling.
| platform_caps::caps_t platf::get_capabilities | ( | ) |
Get the supported platform capabilities to advertise to the client.
Returns the supported platform capabilities to advertise to the client.
| std::optional< util::point_t > platf::get_mouse_loc | ( | input_t & | input | ) |
Get the current mouse position for platform input tests.
| input | The input_t instance to use. |
Examples
| std::vector< supported_gamepad_t > & platf::supported_gamepads | ( | input_t * | input | ) |
Gets the supported gamepads for this platform backend.
This may be called prior to platf::input()!
| input | Pointer to the platform's input_t or nullptr. |