Added Clamp function to general.c
Now clamps all final joystick values to be from 0 - 32767 (2^15 - 1).
Output from the 3ds was giving a strange range on the values, even though the
code expected it to be in the range -128 to 128.
Was more like -146 to 146 on the c-stick, and -170 to 170 on the circle pad.
This may remove some of the resolution of the sticks, but increase compatability with programs.
New pref to choose between Pov or Keys for D Pad, making it work
similarly to C Pad, C Stick and Touch.
Will automatically check whether vJoy has 4-way Pov or Continuous Pov
enabled and choose the correct one to output.
It all merged, it compiled and it works. There are 2 separate
implementations of POV switches in this which I haven't sorted out yet,
if that's necessary (1 for each type, it's ok I guess?)
The volume slider is now the Z axis and the touchpad (if configured like a joystick) is more accurate. If the touchpad is lifted off of, then the RX and RY axis will center (like taking your thumb off a real joystick)
Also filled in default values for all axes, instead of just unused ones.
buttons 9 - 16 are a bit of a hack but hey it works! As long as the user
configures their vJoy.