Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic.LStick.X = REL_X and Classic.LStick.Y = REL_Y do not work #18

Open
Rudloff opened this issue Nov 20, 2012 · 8 comments
Open

Classic.LStick.X = REL_X and Classic.LStick.Y = REL_Y do not work #18

Rudloff opened this issue Nov 20, 2012 · 8 comments

Comments

@Rudloff
Copy link

Rudloff commented Nov 20, 2012

I am trying to use my classic controller's joystick as a mouse.

This works:

Classic.LStick.X = ABS_X
Classic.LStick.Y = ABS_Y

But it is not what I want.

When I try this:

Classic.LStick.X = REL_X
Classic.LStick.Y = REL_Y

Every key I press moves the cursor to the bottom left of the screen, which is quite odd.

@benbaptist
Copy link

Ah, I'm having the same issue. I'm running Fedora 15 64-bit, and I'm hoping to be able to play Minecraft with my classic controller.

According to wminput, I'm running "CWiid Version 0.6.00" which I grabbed off of Fedora's own repos (with the cwiid-wminput package).

I'll try grabbing the source code and compiling from that and report back if that fixes the bug (I don't know if 0.6.00 is the latest version or not).

@kuba-orlik
Copy link

I'm also experiencing this issue - but for me whatever I do with the stick, it moves to the bottom right. :(

@benbaptist
Copy link

I ended up just going with qjoypad - it's compatible with Wiimotes and Wiimote Classic controllers and has a nice GUI to work with. I don't know if cwiid is even maintained anywhere anymore - it's been over 4 or 5 years since any activity.

Also, you can use xboxdrv with a Wiimote Classic controller to override how the dpad and buttons control stuff by default, and to give more compatibility with games designed to work with Xbox controllers. Here's my command (it may or may not work for you)

sudo xboxdrv --dpad-as-button --evdev /dev/input/event$1 --evdev-absmap ABS_HAT1X=x1,ABS_HAT1Y=y1,ABS_HAT2X=x2,ABS_HAT2Y=y2,ABS_HAT3Y=LT,ABS_HAT3X=RT --evdev-keymap=BTN_A=A,BTN_B=B,BTN_X=X,BTN_Y=Y,KEY_PREVIOUS=Back,KEY_NEXT=Start,BTN_MODE=Guide,KEY_DOWN=DOWN,KEY_UP=UP,KEY_LEFT=LEFT,KEY_RIGHT=RIGHT,BTN_TL2=LB,BTN_TR2=RB --mimic-xpad

I just put that into a script named wiimote.sh and do sudo evtest to find the number of the "wiimote classic controller" (i.e. event26). Then, I do ./wiimote.sh 26 to tell it to use that. It works quite well for me, and then I can use qjoypad as well WITH this so that I can bind whatever buttons I want without any issues.

@kuba-orlik
Copy link

Woah, I've never heard of qjoypad, I have to give it a try! Please tell me, how do you connect the wiimote to your PC in the first place?

@benbaptist
Copy link

For me, it usually just pairs up out-of-the-box by just using the regular Bluetooth settings and pairing a device the same way I'd pair any other device. I'm on Xubuntu 14.04 right now, BTW, but it works great on Ubuntu 12.04, and Ubuntu GNOME 15.04.

@kuba-orlik
Copy link

The default GNOME bluetooth manager always tries to pair with the wiimote, but I managed to connect my classic controller with blueman. Your solution with xboxdrv works splendidly, it works in all my games!
I owe you! :)

@benbaptist
Copy link

Awesome!! Glad to hear it works. :D

@ctnlaring
Copy link

ctnlaring commented Mar 6, 2017

@benbaptist Qjoypad doesn't recognize any inputs for me. I connect the wiimote with gnome's bluetooth manager, get the number from evtest and run your wiimote.sh script but when I open qjoypad nothing works. I can connect with cwiid but get the bottom right corner issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants