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
Post a Comment