It is currently Sun Apr 22, 2018 7:32 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 5.61 - Two fingers tap on trackpad triggers scroll events
PostPosted: Thu Dec 21, 2017 11:00 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 475
Location: France
A "Two Fingers Tap" (to do a right-click) on the trackpad of a Macbook (even wihtout moving) triggers scroll wheel events in a CanvasGadget (and may be OpenGLGadget ?) :

Code:
OpenWindow (0, 100, 100, 300, 200, "CanvasGadget Events Test")
CanvasGadget(0, 10, 10, 280, 180, #PB_Canvas_Keyboard)

Repeat
   Select WaitWindowEvent()
      Case #PB_Event_Gadget
         Select EventGadget()
            Case 0 ; CanvasGadget
               Select EventType()
                  Case #PB_EventType_LeftButtonDown
                     Debug "#PB_EventType_LeftButtonDown"
                  Case #PB_EventType_LeftButtonUp
                     Debug "#PB_EventType_LeftButtonUp"
                  Case #PB_EventType_LeftClick
                     Debug "#PB_EventType_LeftClick"
                  Case #PB_EventType_RightButtonDown
                     Debug "#PB_EventType_RightButtonDown"
                  Case #PB_EventType_RightButtonUp
                     Debug "#PB_EventType_RightButtonUp"
                  Case #PB_EventType_RightClick
                     Debug "#PB_EventType_RightClick"
                  Case #PB_EventType_MouseWheel
                     Debug "#PB_EventType_MouseWheel"
               EndSelect
         EndSelect
     
      Case #PB_Event_CloseWindow
         Break
   EndSelect
ForEver

_________________
Niffo


Last edited by Niffo on Thu Dec 21, 2017 1:38 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Double Tap on trackpad triggers scroll wheel even
PostPosted: Thu Dec 21, 2017 1:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 382
Works here fine on PB 5.46 OSX 10.7.


Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Two fingers tap on trackpad triggers scroll event
PostPosted: Thu Dec 21, 2017 1:40 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 475
Location: France
@Wolfram : My mistake, it's not a "Double tap" but a "Two fingers tap" (to do a right-click). I've corrected my first post.

_________________
Niffo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye