Even though we can't do a "hands-on" demo of various controllers, this
is still useful information (I hope!). At the very end we build a
'standalone' app.
Links
class vids
week11-1: basic control
-- basic controller mapping, moving from KeyCodes to Axes.
also, I forgot to mention in the video that the main controls
for the HTC Vive controllers are set up on the x-axis and y-axis,
just like the Xbox main joystick controls
week11-2: adding controls
-- setting up our 'own' axis for rotational control from the
second little Xbox joystick. See below for a link showing the
Xbox controller labels
instructions for installing the Xbox1 driver on OSX. One
thing: when you go to the main System Preferences and find the
Xbox 360 controllers, you may have to go to the "Advanced" tab
and click "Enable Driver" and then give permission to the signed
software developer who did this nice thing. Also: you will need
to use a micro-USB cable to connect the device. Contrary to what
some web sites suggested, I couldn't get a bluetooth connection
to work.
UnityOSC Github page
-- the main page for grabbing the OSC script I used in the class examples.
I've also stashed a copy (as of 4/2020) of the project here:
UnityOSC-master.zip, and if
all you want to grab the OSC.cs script, download it here:
OSC.cs