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

Author Topic: Joysticks DO NOT Work On Windows Vista OS...  (Read 12104 times)

0 Members and 2 Guests are viewing this topic.

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« on: March 06, 2009, 12:11:47 am »
Joysticks DO NOT Work On Windows Vista OS...

Hi,

I am trying to get my joystick to work on Windows Vista using SFML 1.4 + SVN...


I am using:
Code: [Select]
const sf::Input& Input = visuals->App.GetInput();

JoystickAxisX = Input.GetJoystickAxis(0, sf::Joy::AxisX);

to get the X axis of my joystick, but it is always 0 ???

Am I doing something wrong ?
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #1 on: March 06, 2009, 07:45:24 am »
No. Can you show a complete and minimal example that reproduces the problem? So that I can try myself and see if there's a bug.
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #2 on: March 06, 2009, 06:50:00 pm »
Quote from: "Laurent"
No. Can you show a complete and minimal example that reproduces the problem? So that I can try myself and see if there's a bug.



Hi,

Sorry for the delay.
Here is a simple test program to test both joysticks:
http://silentheroproductions.com/files/SFML_Joysticks_Test.zip


I am getting nothing from my two joysticks on Windows Vista.
I have a unique setup - two PS2 Dual Shock joysticks...
Both joysticks are recognized by Vista as standard game controllers.
(i checked in Control Panel)

Hope you can fix this issue soon.
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #3 on: March 06, 2009, 07:01:23 pm »
Hey, no need to spam, one message is enough :P
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #4 on: March 06, 2009, 07:17:33 pm »
It works fine for me.

Maybe there's a problem with DualShock joysticks, I remember someone having a similar problem on this forum.
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #5 on: March 06, 2009, 07:20:33 pm »
Quote from: "Laurent"
It works fine for me.

Maybe there's a problem with DualShock joysticks, I remember someone having a similar problem on this forum.




Hi,

These two joysticks are recognized by Vista as standard game controllers.
(no drivers)
This is should work in SFML 1.4+SVN but it does not.

How are you handling joysticks on Vista OS ??
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #6 on: March 06, 2009, 07:23:44 pm »
The same way as with any other Windows OS.

Maybe you can find a non-DualShock joystick to test? Or a non-Vista Windows? :D
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #7 on: March 06, 2009, 07:26:23 pm »
Quote from: "Laurent"
The same way as with any other Windows OS.

Maybe you can find a non-DualShock joystick to test? Or a non-Vista Windows? :D




Hi,

This joystick setup works in SDL 1.2, why not working in SFML 1.4+SVN ???
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #8 on: March 06, 2009, 07:34:07 pm »
There's obviously a bug in SFML, and I'm just trying to identify the source of the problem (OS, joystick, ...).

Repeating that you expect it to work won't help me to fix this bug.
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #9 on: March 06, 2009, 08:21:26 pm »
When you think it is fixed let me know and i will test here...


JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #10 on: March 06, 2009, 11:46:07 pm »
It will be hard to fix, as I have no Vista and no DualShock joystick to reproduce the problem.
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #11 on: March 06, 2009, 11:49:48 pm »
Quote from: "Laurent"
It will be hard to fix, as I have no Vista and no DualShock joystick to reproduce the problem.



Hi,

I need this working for my next game...
You are a genius, figure something out...

I am here to test when you are ready.
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #12 on: March 07, 2009, 12:00:49 am »
What if you only plug one joystick?
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #13 on: March 07, 2009, 12:06:30 am »
Quote from: "Laurent"
What if you only plug one joystick?



Hi,

I am a programmer, like you but not as skilled.

I have tried everything to get this to work, but it does not work.
(I tried with just one controller, nothing)

Google: "Vista Joystick programming" or something.
The system calls for joystick polling are different on Vista.
(just a guess)

And you should really have both XP and Vista OSs considering your developing a state of the art 2d game engine...
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
Joysticks DO NOT Work On Windows Vista OS...
« Reply #14 on: March 09, 2009, 04:20:41 pm »
Hi,

I bought a regular Logitech USB joystick and tested it on Vista OS using SFML.

Joysticks are not working at all on Vista OS and SFML.

Please fix!!!
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com