LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-24-2011, 05:09 PM   #1
splintercdo
Member
 
Registered: Feb 2011
Posts: 141

Rep: Reputation: 11
Game pad axis does not work in wine


Hey guys,
I have cheap Defender game pad, but it works nicely in every native linux application I have tried.

Problems starts when I try to use it with wine, if I do that, every button except up, down and right directions work even left direction works!

Please, share some of your knowledge.
 
Old 09-25-2011, 02:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
IIRC wine passes I/O straight to the system. Can you run it on your box without wine?
 
Old 09-25-2011, 10:30 AM   #3
splintercdo
Member
 
Registered: Feb 2011
Posts: 141

Original Poster
Rep: Reputation: 11
As I said previously,
Quote:
but it works nicely in every native linux application I have tried.
yes!

I can take, for example, one application zsnes and run it natively in linux using this particular game pad and it works brilliantly, but if I try to use game pad in zsnes windows port running through wine it does not work correctly!

Last edited by splintercdo; 09-25-2011 at 11:02 AM.
 
Old 09-25-2011, 03:53 PM   #4
splintercdo
Member
 
Registered: Feb 2011
Posts: 141

Original Poster
Rep: Reputation: 11
OK, I guess I am marking this thread as solved, because, I got controller working for zsnes(just experiment, because of course I can use native app), the bad thing is that these settings does not work for other apps, it means(I hope so ) that I have to configure joystick for every application separately , I have to check out for some unification app.

What I did was
1. run regedit
2. Add new Key to: HKCU->Software->Wine called DirectInput, add to it new string value called "NameOfJoystic" with value "X,Y,Rz,Slider1,Slider2" where name of Joystic you get by running WINEDEBUG=+dinput wine zsnesw.exe 2>&1 | grep joydev_enum_device name is just the part in brackets!

in my case output was trace:dinput:joydev_enum_deviceA Enumerating the linux Joystick device: /dev/input/js0 (USB Gamepad )

So my DirectInput key string value with name USB Gamepad has value X,Y,Rz,Slider1,Slider2

Last edited by splintercdo; 09-25-2011 at 05:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change axes for USB game pad? pham Linux - Hardware 1 07-20-2009 09:08 AM
Installing a USB game pad/joystick JoshCrumley100 Linux - Hardware 1 12-17-2006 12:56 PM
Game Pad Help chesterthefatp Linux - Newbie 2 03-14-2006 04:42 PM
Counter-Strike works in Wine but the keyboard doesn't work in the game objorkum Linux - Games 2 01-12-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration