message: More keypad work [Issue 85]
diff: @@ -96,19 +96,19 @@ static void getAuxInterlink(float * axes, uint8_t buttons, uint8_t aux1, uint8_t
  bool Joystick::gotKeypad(uint8_t numericalCode, uint8_t nonNumericalCode)
  {
  - return ((GetKeyState(numericalCode) | GetKeyState(nonNumericalCode)) & 0x80) == 0x80;
  + return GetAsyncKeyState(numericalCode) || GetAsyncKeyState(nonNumericalCode);
  }
  void Joystick::keypadToAxes(float axes[6])
  {
  - for (uint8_t k=0; k<256; ++k) {
  - if (GetAsyncKeyState(k)) {
  - rft::Debugger::printf("%x", k);
  - }
  + if (gotKeypad(VK_PRIOR, VK_NUMPAD9)) {
  + rft::Debugger::printf("THROTTLE UP");
  }
  + if (gotKeypad(VK_NEXT, VK_NUMPAD3)) {
  + rft::Debugger::printf("THROTTLE DOWN");
  + }
  - /*
  if (gotKeypad(VK_RIGHT, VK_NUMPAD6)) {
  rft::Debugger::printf("ROLL RIGHT");
  }
  @@ -117,10 +117,6 @@ void Joystick::keypadToAxes(float axes[6])
  rft::Debugger::printf("ROLL LEFT");
  }
  - if (gotKeypad(0x35, VK_NUMPAD5)) {
  - rft::Debugger::printf("ROLL CENTER");
  - }
  -
  if (gotKeypad(VK_UP, VK_NUMPAD8)) {
  rft::Debugger::printf("PITCH FORWARD");
  }
  @@ -129,13 +125,18 @@ void Joystick::keypadToAxes(float axes[6])
  rft::Debugger::printf("PITCH BACK");
  }
  - if (gotKeypad(VK_PRIOR, VK_NUMPAD9)) {
  - rft::Debugger::printf("THROTTLE UP");
  + if (gotKeypad(VK_RETURN, VK_RETURN)) {
  + rft::Debugger::printf("YAW RIGHT");
  + }
  +
  + if (gotKeypad(VK_INSERT, VK_NUMPAD0)) {
  + rft::Debugger::printf("YAW LEFT");
  + }
  +
  + if (gotKeypad(VK_CLEAR, VK_NUMPAD5)) {
  + rft::Debugger::printf("CENTER ALL");
  }
  - if (gotKeypad(VK_NEXT, VK_NUMPAD3)) {
  - rft::Debugger::printf("THROTTLE DOWN");
  - }*/
  }
  uint16_t Joystick::pollProduct(float axes[6], uint8_t & buttons)
  