Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: Wyrm on May 14, 2012, 12:39:26 am
-
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
-
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.