#include <linux/input.h>
#include "base/basictypes.h"
+#include "ui/events/events_export.h"
#define EVDEV_LONG_BITS (CHAR_BIT * sizeof(long))
#define EVDEV_BITS_TO_LONGS(x) (((x) + EVDEV_LONG_BITS - 1) / EVDEV_LONG_BITS)
//
// This stores and queries information about input devices; in
// particular it knows which events the device can generate.
-class EventDeviceInfo {
+class EVENTS_EXPORT EventDeviceInfo {
public:
EventDeviceInfo();
~EventDeviceInfo();
bool HasSwEvent(unsigned int code) const;
bool HasLedEvent(unsigned int code) const;
+ // Properties of absolute axes.
+ int32 GetAbsMinimum(unsigned int code) const;
+ int32 GetAbsMaximum(unsigned int code) const;
+
// Check input device properties.
bool HasProp(unsigned int code) const;
unsigned long led_bits_[EVDEV_BITS_TO_LONGS(LED_CNT)];
unsigned long prop_bits_[EVDEV_BITS_TO_LONGS(INPUT_PROP_CNT)];
+ struct input_absinfo abs_info_[ABS_CNT];
+
DISALLOW_COPY_AND_ASSIGN(EventDeviceInfo);
};