News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Does wxSmith support multitouch gestures and stylus input?

Started by Wyrm, May 14, 2012, 12:39:26 AM

Previous topic - Next topic

Wyrm

I'm trying to understand how to implement tablet inputs such as multitouch and stylus drawing with wxWidgets and wxSmith. The problems is that the list of events of any widget does not include the events sent by Wacom digitizers (positions, pressure, stylus tilt, etc). Is there are way to work around it and intercept the events coming directly from the Wacom driver and the OS?
Thanks,
W

MortenMacFly

Quote from: Wyrm on May 14, 2012, 12:39:26 AM
Is there are way to work around it and intercept the events coming directly from the Wacom driver and the OS?
Sure, you can manually attach to any event, e.g. using the Connect() method of wxWidgets. Take the C::B sources as reference, we have a lot places where we connect to certain events in a wxSmith controlled UI. Note that sometimes you even have to do it that way because (for example) you need some initialisation before.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]