double value;
};
+struct XEventDeleter {
+ void operator()(XEvent* event);
+};
+
class ScopedXI2Event {
public:
ScopedXI2Event();
void InitButtonEvent(EventType type,
int flags);
+ void InitGenericButtonEvent(int deviceid,
+ EventType type,
+ int flags);
+
void InitMouseWheelEvent(int wheel_delta,
int flags);
void SetUpValuators(const std::vector<Valuator>& valuators);
- scoped_ptr<XEvent> event_;
+ scoped_ptr<XEvent, XEventDeleter> event_;
DISALLOW_COPY_AND_ASSIGN(ScopedXI2Event);
};