Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Enmark's avatar
Enmark
Expert Protege
9 years ago

Remap Toush buttons/trigger to "Fire1"

 Anyone know how to easy convert the touch trigger to "Fire1" (Left mouse button) 

Default in the SDK, button.ONE on the toush controller is lunching my projectile using old script with "Fire1" (Left mouse button)
if (Input.GetButtonDown("Fire1")) {


Is there an easy way to remap:
 
 "Button.One" = "Fire1 / LMB"      to:      "PrimaryindexTrigger" = "Fire1 / LMB"  



Could this be done in the OVRinput.cs skript without changing the "Fire1" script?


/ Best regards from the Dactyl Nightmare  dev. Fredrik

3 Replies

Replies have been turned off for this discussion
  • Enmark's avatar
    Enmark
    Expert Protege
    Great to hear!

    That is my main problem for the moment, Easy remaping of all touch/buttons without using scripts, but using unity default interface or somethng like that . otherwise im probably have to go with the "NewtonVR" setup  
  • I had this problem and I worked on developing a script for days trying to get this to work.  My work around was to go in to your input settings and go to the input fire one drop-down menu and add the touch controller as alternate positive. That way mouse clicks the input fire 1 and the touch controller does also. I think it is referenced as button.1. So what ever button you would like just type into the input settings under input fire 1. No script needed!

  • JBivBeats said:

    I had this problem and I worked on developing a script for days trying to get this to work.  My work around was to go in to your input settings and go to the input fire one drop-down menu and add the touch controller as alternate positive. That way mouse clicks the input fire 1 and the touch controller does also. I think it is referenced as button.1. So what ever button you would like just type into the input settings under input fire 1. No script needed!



    How do I add the touch controller as an alternate positive?