c_api_input.h - Engine C API Reference

c_api_input.h
  1. #pragma once
  2. #include "c_api_types.h"
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. struct InputControllerCApi;
  7. struct KeyboardCApi;
  8. struct PS4PadCApi;
  9. struct TouchInputCApi;
  10. struct XBoxOnePadCApi;
  11. struct InputCApi
  12. {
  13. struct InputControllerCApi *InputController;
  14. struct KeyboardCApi *Keyboard;
  15. struct PS4PadCApi *PS4Pad;
  16. struct TouchInputCApi *Touch;
  17. struct XBoxOnePadCApi *XBoxOnePad;
  18. void (*raw_input_queue) (struct RawInputEventWrapper* buffer, unsigned buffer_size);
  19. unsigned (*raw_input_queue_size) ();
  20. void (*add_remote_events)(unsigned event_count, struct RemoteEventWrapper* remote_events);
  21. CApiInputControllerPtr (*keyboard)();
  22. CApiInputControllerPtr (*mouse)();
  23. CApiInputControllerPtr (*tablet)();
  24. CApiInputControllerPtr (*touch_panel)(int index);
  25. CApiInputControllerPtr (*simulated_touch_panel)();
  26. int (*num_touch_panels)();
  27. int (*num_pads)();
  28. CApiInputControllerPtr (*pad)(int index);
  29. void (*flush_controllers_state)();
  30. CApiInputControllerPtr (*synergy_mouse)();
  31. CApiInputControllerPtr (*synergy_keyboard)();
  32. void (*synergy_connect)(struct SocketAddressWrapper* address, const char *client_name, int client_width, int client_height);
  33. const char *(*synergy_clipboard)();
  34. int (*num_windows_ps4_pads)();
  35. CApiInputControllerPtr (*windows_ps4_pad)(int index);
  36. void (*scan_for_windows_ps4_pads)();
  37. void (*set_tablet_pen_service_properties)(uint64_t prop);
  38. };
  39. #ifdef __cplusplus
  40. }
  41. #endif