Fixed: CPEvent data1 and data2 weren't stored right.

They were stored in globals instead of ivars, allowing only one data1 or data2 in the whole app.
This commit is contained in:
Alexander Ljungberg
2012-08-02 15:53:04 +01:00
parent 1ccd89ddd8
commit 6b660a0c76
+12
View File
@@ -204,6 +204,8 @@ var _CPEventPeriodicEventPeriod = 0,
BOOL _isARepeat;
unsigned _keyCode;
DOMEvent _DOMEvent;
int _data1;
int _data2;
float _deltaX;
float _deltaY;
@@ -517,6 +519,16 @@ var _CPEventPeriodicEventPeriod = 0,
return _DOMEvent;
}
- (int)data1
{
return _data1;
}
- (int)data2
{
return _data2;
}
// Getting Scroll Wheel Event Information
/*!
Returns the change in the x-axis for a mouse event.