Desktop Touch Support in 1.6

Discussion about using Moai SDK - post questions, issues, and ideas here.

Moderators: naturally, seebs, ezraanderson

Desktop Touch Support in 1.6

Postby naturally » Mon Apr 20, 2015 5:30 am

Was very pleasantly surprised to find full multitouch support for my desktop touch monitor in 1.6 SDL host!

And on Linux too!

Had to add this, after joystick:

Code: Select all
  1. AKUSetInputDeviceJoystick       ( InputDeviceID::DEVICE, InputSensorID::JOYSTICK_BUTTON,"joystickButton" );

  2. if ( SDL_GetNumTouchDevices() > 0 ) {

  3.         AKUSetInputDeviceTouch          ( InputDeviceID::DEVICE, InputSensorID::TOUCH,      "touch" );

  4. }

Not sure if SDL_GetNumTouchDevices is best method for touch detection or not.

Should also note I am very happy with how fast the build script rebuilds minor changes to the host! :D
Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
Posts: 716
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: Desktop Touch Support in 1.6

Postby mickkeger » Mon Nov 27, 2017 4:14 am

I can't copy the code. Seems like the forum thread doesn't allow copying materials. Can you please send it to my account at Essay for college or my e-mail? Thanks.
Posts: 1
Joined: Mon Nov 27, 2017 4:09 am

Return to Moai SDK

Who is online

Users browsing this forum: Bing [Bot] and 1 guest