14 #ifndef IOKITINPUTDEVICE_H 15 #define IOKITINPUTDEVICE_H 20 #if defined(__APPLE__) && !defined(CPPPARSER) 22 #include <IOKit/hid/IOHIDDevice.h> 28 class EXPCL_PANDA_DEVICE IOKitInputDevice final :
public InputDevice {
30 IOKitInputDevice(IOHIDDeviceRef device);
36 void parse_element(IOHIDElementRef element);
38 virtual void do_poll();
40 IOHIDDeviceRef _device;
43 IOHIDElementRef _hat_element;
45 IOHIDElementRef _pointer_x;
46 IOHIDElementRef _pointer_y;
47 IOHIDElementRef _scroll_wheel;
48 uint64_t _pointer_x_timestamp;
49 uint64_t _pointer_y_timestamp;
50 uint64_t _scroll_wheel_timestamp;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.