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