Emulating proper Left Down State for Mouse Events on iPhone
This commit is contained in:
@@ -150,7 +150,8 @@ void SetupMouseEvent( wxMouseEvent &wxevent , NSSet* touches, UIEvent * nsEvent
|
||||
switch ( button )
|
||||
{
|
||||
case 0 :
|
||||
wxevent.SetEventType( clickCount > 1 ? wxEVT_LEFT_DCLICK : wxEVT_LEFT_DOWN ) ;
|
||||
wxevent.SetEventType( clickCount > 1 ? wxEVT_LEFT_DCLICK : wxEVT_LEFT_DOWN );
|
||||
wxevent.SetLeftDown(true);
|
||||
break ;
|
||||
|
||||
default:
|
||||
@@ -162,7 +163,8 @@ void SetupMouseEvent( wxMouseEvent &wxevent , NSSet* touches, UIEvent * nsEvent
|
||||
switch ( button )
|
||||
{
|
||||
case 0 :
|
||||
wxevent.SetEventType( wxEVT_LEFT_UP ) ;
|
||||
wxevent.SetEventType( wxEVT_LEFT_UP );
|
||||
wxevent.SetLeftDown(false);
|
||||
break ;
|
||||
|
||||
default:
|
||||
@@ -171,7 +173,8 @@ void SetupMouseEvent( wxMouseEvent &wxevent , NSSet* touches, UIEvent * nsEvent
|
||||
break ;
|
||||
|
||||
case UITouchPhaseMoved :
|
||||
wxevent.SetEventType( wxEVT_MOTION ) ;
|
||||
wxevent.SetEventType( wxEVT_MOTION );
|
||||
wxevent.SetLeftDown(true);
|
||||
break;
|
||||
default :
|
||||
break ;
|
||||
|
Reference in New Issue
Block a user