Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Need help to test the new joystick code  (Read 8618 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Need help to test the new joystick code
« on: December 05, 2007, 02:36:54 am »
Hi

I've modified the joystick code, to be able to handle up to 7 axes and 16 buttons.

But I have currently no joystick to test it, so I need your help. Everyone able to get the source from SVN, and owning a joystick, is invited to test the new code :)

The events and constants have slightly changed, so you should check the Event.hpp file to see what to test.

Thanks ;)
Laurent Gomila - SFML developer

ExcessNeo

  • Newbie
  • *
  • Posts: 16
    • View Profile
Need help to test the new joystick code
« Reply #1 on: December 06, 2007, 03:21:31 am »
I'll dig up my Saitek X45 and test it out after this weekend.  :)

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Need help to test the new joystick code
« Reply #2 on: December 06, 2007, 05:43:18 pm »
I'd try it, but the SVN doesn't agree with me. Dunno how to compile the libs. :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Need help to test the new joystick code
« Reply #3 on: December 07, 2007, 02:23:12 am »
What do you mean ? Did you get an error ?
Laurent Gomila - SFML developer

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Need help to test the new joystick code
« Reply #4 on: December 07, 2007, 01:23:43 pm »
Code: [Select]
-------------- Build: Release static_Win32 in sfml-window ---------------

Compiling: ..\src\SFML\Window\Win32\WindowImplWin32.cpp
G:\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp: In member function `void sf::priv::WindowImplWin32::ProcessEvent(UINT, WPARAM, LPARAM)':
G:\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp:748: error: `XBUTTON1' undeclared (first use this function)
G:\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp:748: error: (Each undeclared identifier is reported only once for each function it appears in.)
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
 


 :?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Need help to test the new joystick code
« Reply #5 on: December 07, 2007, 01:38:37 pm »
What is your OS ?
Laurent Gomila - SFML developer

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Need help to test the new joystick code
« Reply #6 on: December 07, 2007, 03:48:03 pm »
Windows XP, using Code::Blocks to compile the libs.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Need help to test the new joystick code
« Reply #7 on: December 08, 2007, 05:18:56 am »
Apparently, old versions of MinGW Win32 headers lack the definition of XBUTTON1 and XBUTTON2.

I've updated the code, as well as the Code::Blocks project files. It should compile fine now.
Laurent Gomila - SFML developer