Enhanced trackpad/mousewheel support

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

Enhanced trackpad/mousewheel support

Post by wombats »

For the OpenGLGadget and CanvasGadget, I would love to see an event like #PB_EventType_MouseHWheel or something to detect horizontal movements on a trackpad. I am able to get this working on macOS using CocoaMessage, but I am struggling on Windows. On Windows, these gadgets don't seem to report #WM_MOUSEWHEEL for horizontal movements, unless it's just my laptop.

On Qt, the gadgets fire the #PB_EventType_MouseWheel event when moving horizontally on the trackpad, which ends up moving the vertical scrollbar because there is currently no way that I know of to differentiate between the two directions.

It would also be awesome to have trackpad gesture support like pinching, swiping, etc.

Could these be implemented, please? Thank you for considering this.