- Fixed a bug where psmove_3axisvector_min() returned the z-axis as the minimum when the y-axis was expected
- Fixed a bug where psmove_3axisvector_max() returned the z-axis as the maximum when the y-axis was expected
Merge pull request #136 from nitsch/fix-windows-build

Fix Windows build
Merge pull request #140 from sivyr/master

Fixed a bug affecting min/max vector computations
Automatically detect BlueZ 5.x

Starting with BlueZ 5, pairing on Linux requires different code than
previous versions. While this code is already present, it currently
requires the user to manually define PSMOVE_BLUEZ5_SUPPORT in the build
in order to be used.

This fix implements automatic detection whether BlueZ version 5.x is used
in the build and handles the required define accordingly.
Add support for interactive pairing on Windows

Establishing a connection between the Move and a Bluetooth radio on
Windows is rather tricky (without the use of custom drivers). The
procedure implemented here is as follows:

  1. configure the Bluetooth radio
  2. find a Move with the given Bluetooth device address
  3. try to enable the HID service for this device
  4. check if that succeeded (i.e. device connected and service enabled)

Since this rarely succeeds on the first try, the whole procedure is
repeated over and over again, requiring the user only to press the
controller's PS button every time the small status LED goes off.

This procedure is known to work on Windows XP and Windows 7. It does not
seem to work on Windows 8.