Author Topic: Does wxSmith support multitouch gestures and stylus input?  (Read 4266 times)

Offline Wyrm

  • Multiple posting newcomer
  • *
  • Posts: 23
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Does wxSmith support multitouch gestures and stylus input?
« Reply #1 on: May 14, 2012, 06:25:03 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ