News: Enjoy our Christmas offer 30% off on our latest package Tower Defense Level Kit http://u3d.as/m7h

  • August 19, 2018, 07:41:11 PM

Login with username, password and session length

Author Topic: Right Mouse Button EasyTouch Events?  (Read 410 times)

Offline Hawkules

  • Newbie
  • *
  • Posts: 2
Right Mouse Button EasyTouch Events?
« on: August 20, 2017, 05:10:08 AM »
Is there any way to enable Easy Touch events when the Right Mouse is pressed, as well as the Left?

Cheers,
Hawk

Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Right Mouse Button EasyTouch Events?
« Reply #1 on: August 22, 2017, 08:43:38 AM »
Hi,

Mouse button is for simulation only, if you want to use right button you have to change the script

Offline Hawkules

  • Newbie
  • *
  • Posts: 2
Re: Right Mouse Button EasyTouch Events?
« Reply #2 on: August 23, 2017, 07:53:28 AM »
Went through EasyTouchInput.cs and replaced all Input references like:
Input.GetMouseButtonUp(0)
with:
Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1)

Works with RMB now for what I needed, simulating double finger swipes on PC with RMB. Cheers.