unity3d - Mapping bluetooth controller in Unity -


i thinking of buying bluetooth controller. somthing this :

or this.

can use these bluetooth controllers unity? how can map these controllers ? in advance.

as connect bluetooth controller, gets handled os device. need find out key corresponds keycode.

for example, write this

public void detectpressedkeyorbutton()  {      foreach(keycode kcode in enum.getvalues(typeof(keycode)))      {          if (input.getkeydown(kcode))              debug.log("keycode down: " + kcode);      }  } 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -