Use CGFloat instead of float for mouse wheel event parameters.
This fixes mouse wheel handling in 64 bits where CGFloat has size different from float. Closes #12168. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -387,8 +387,8 @@ bool g_lastButtonWasFakeRight = false ;
|
|||||||
// see http://lists.apple.com/archives/cocoa-dev/2007/Feb/msg00050.html
|
// see http://lists.apple.com/archives/cocoa-dev/2007/Feb/msg00050.html
|
||||||
|
|
||||||
@interface NSEvent (DeviceDelta)
|
@interface NSEvent (DeviceDelta)
|
||||||
- (float)deviceDeltaX;
|
- (CGFloat)deviceDeltaX;
|
||||||
- (float)deviceDeltaY;
|
- (CGFloat)deviceDeltaY;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEvent )
|
void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEvent )
|
||||||
|
Reference in New Issue
Block a user