Definitions for libvirtualhid-backed macOS input handling. More...
#include <ApplicationServices/ApplicationServices.h>#include <cstdint>#include <memory>#include <utility>#include <vector>#include <libvirtualhid/license.hpp>#include "src/config.h"#include "src/platform/virtualhid_input.h"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-backed macOS 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. |