SFML community forums

Help => Window => Topic started by: JeZ-l-Lee on March 06, 2009, 12:11:47 am

Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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 ?
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent 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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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

(http://silentheroproductions.com/images/SFML_Joystick_TEST.gif)
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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent on March 06, 2009, 07:01:23 pm
Hey, no need to spam, one message is enough :P
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent 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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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 ??
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent 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
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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 ???
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent 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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee on March 06, 2009, 08:21:26 pm
When you think it is fixed let me know and i will test here...


(http://silentheroproductions.com/images/TigerGame.gif)
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent 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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent on March 07, 2009, 12:00:49 am
What if you only plug one joystick?
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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...
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee 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!!!
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Daazku on March 09, 2009, 07:00:35 pm
I will try mine tomorrow to know if its really vista.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent on March 09, 2009, 11:10:21 pm
I tested on a Vista laptop: everything is working fine (I have a crappy no-brand USB joystick). Too bad :?
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Daazku on March 10, 2009, 01:05:14 am
I did some test!

My joystick is actually detected by sfml but events aren't catched. So you should try to find why :D.

Edit: Logitech DUAL ACTION
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent on March 10, 2009, 07:58:12 am
Great, we'll be able to do more debugging now :)
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee on March 10, 2009, 03:31:31 pm
Hi,

I've got two Logitech Dual Action USB joysticks now.
(Spent about $50 already trying to help you fix this bug)
They do not work with SFML+SVN and my Windows Vista OS.
(OS is Microsoft Windows Vista Ultimate Service Pack 1 32bit)

Again, the two Logitech joysticks
are recognized by the OS
under "Control Panel" -> "Game Controllers"

Both of the Logitech joysticks are working.
I have testing using SDL 1.2 and also tried them in all of my emulators.

Please make this highest priority...
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Laurent on March 10, 2009, 04:08:35 pm
Quote
Hi,

I've got two Logitech Dual Action USB joysticks now.
(Spent about $50 already trying to help you fix this bug)
They do not work with SFML+SVN and my Windows Vista OS.
(OS is Microsoft Windows Vista Ultimate Service Pack 1 32bit)

Again, the two Logitech joysticks
are recognized by the OS
under "Control Panel" -> "Game Controllers"

Both of the Logitech joysticks are working.
I have testing using SDL 1.2 and also tried them in all of my emulators.

Please make this highest priority...

Stop it please. One more message like this one and I'll really stop working on this bug. It doesn't help at all, it just irritates me more and more. Trust me, I'm currently doing my best and I really don't need such disrespectful messages.
I'm just a passionate developer who spends some free time trying to make a good free library, not a company to which you paid a 1K$ license for professional support.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: JeZ-l-Lee on March 10, 2009, 04:50:28 pm
Sorry - I did not mean to offend you...

I have learning disability called Autism.

When you have something to test on Vista let me know
and I'll drop what I am doing to help...

Here is my next SFML game:

TetriBattle3 100%™ Version 3.5
For Windows, Linux, Mac OS X

"Battle or cooperate with up to two of your friends in a perfect game of Tetri_ with amazing graphics, sound, and music on your computer system!"

(http://silentheroproductions.com/images/TB3_100_Ver3_5_Dev_02.gif)
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Daazku on March 11, 2009, 12:31:02 am
I did more test and it work perfectly  in debug static with the lastest source from SVN.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Core Xii on March 11, 2009, 09:20:41 am
Quote from: "JeZ-l-Lee"

TetriBattle3 100%™ Version 3.5


I've said this before, so let me be perfectly clear: You can't use or ® unless the name actually is a (registered) trademark.

It's not just me being mean, that's how it actually works. You do realize that the holder of the Tetris trademark (which is registered) could theoretically sue you for that? At the very least, shut down your website should you redistribute content violating their trademark.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: dabo on March 11, 2009, 12:23:59 pm
Quote from: "Core Xii"
Quote from: "JeZ-l-Lee"

TetriBattle3 100%™ Version 3.5


I've said this before, so let me be perfectly clear: You can't use or ® unless the name actually is a (registered) trademark.

It's not just me being mean, that's how it actually works. You do realize that the holder of the Tetris trademark (which is registered) could theoretically sue you for that? At the very least, shut down your website should you redistribute content violating their trademark.


Do you have a source? I'm not saying you are wrong because I don't know much about this but I would like to.

According to this site http://www.firstwriter.com/copyright/symbol.shtml, you only have to register to use ®.

Quote
To qualify for use of the registered trade mark symbol (®) you must register your trade mark with the appropriate authority in your country, whereas the trade mark symbol (™) can be applied to any symbol you are using as a trade mark. Use of the copyright symbol is more similar to use of the trade mark symbol, as work does not need to be registered in order to use it.


Quote
It is often illegal to apply the "®" symbol to a trade mark which has not been registered.
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Core Xii on March 12, 2009, 04:25:34 pm
Quote from: "dabo"

According to this site http://www.firstwriter.com/copyright/symbol.shtml, you only have to register to use ®.


That's correct, it's why I put (registered) in parenthesis. He uses ® too in a lot of places.

However, even if TetriBattle3 100%™ isn't a registered trademark and thus it's legal to use ™, it's certainly not legal to use a name so similar to Tetris which is a registered trademark of The Tetris Company LLC, who, according to Wikipedia, "have vigorously policed and enforced their rights and have sent cease-and-desist letters to websites that infringe Tetris":

Quote
Due to the popularity of Tetris, there have also been many knock-off and lookalike games on the Internet. In order to stop this infringement, The Tetris Company and Tetris Holding have vigorously policed and enforced their rights and have sent cease-and-desist letters to websites that infringe Tetris.


I didn't say anything about the game being a Tetris clone, even, that's understandable for a beginner programmer to recreate. Just that he shouldn't use symbols he has no clue about what they mean. It's a very common newbie habit to tack ©, ® and ™ on every name because it makes them look "cool" and "professional" (ironically, it does the exact opposite).
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: dabo on March 12, 2009, 07:04:46 pm
Yeah that sounds correct. However the link I was refering to claims you can use the © as well without registering. What's your thought on that?
Title: Joysticks DO NOT Work On Windows Vista OS...
Post by: Core Xii on March 12, 2009, 10:45:10 pm
Quote from: "dabo"
Yeah that sounds correct. However the link I was refering to claims you can use the © as well without registering. What's your thought on that?


Copyright is applied automatically to everything you create, regardless of whether you use the © symbol or not. Usually it's used very conservatively to remind people of this fact, but it isn't needed. So when I see excessive (usually combined) use of ©, ® and ™ it just tells me the person doesn't really know what they mean.