Fix the buttonNumber method of CPEvent.

Closes #70.
This commit is contained in:
Ross Boucher committed 2010-04-09 14:38:08 -07:00
1 parent 4cc7dec35b
commit 70410d6311
1 file changed
+5 -2
+5 -2
View File
@@ -128,7 +128,7 @@ var _CPEventPeriodicEventPeriod = 0,
BOOL _isARepeat;
unsigned _keyCode;
DOMEvent _DOMEvent;
float _deltaX;
float _deltaY;
float _deltaZ;
@@ -345,7 +345,10 @@ var _CPEventPeriodicEventPeriod = 0,
*/
- (int)buttonNumber
{
return _buttonNumber;
if (_type === CPRightMouseDown || _type === CPRightMouseUp || _type === CPRightMouseDragged)
return 1;
return 0;
}
/*!