MidnightControls icon indicating copy to clipboard operation
MidnightControls copied to clipboard

Controller Issues: Xbox One

Open bladehorton opened this issue 3 years ago • 24 comments

Describe the bug Controller input is not detected by Minecraft

To Reproduce Steps to reproduce the behavior:

  1. Download Midnight Controls
  2. Start Minecraft
  3. Connect Xbox One controller via USB or bluetooth
  4. See controller detected message
  5. Change settings to suit you
  6. Have controller not work

Expected behavior correctly functioning controller

Desktop (please complete the following information):

  • OS: Linux Mint
  • Minecraft 1.19
  • Fabric 0.11.0
  • Mods modmenu v1.7.15
  • Version [e.g. 1.4.1
  • Branch Release

Additional context No input is detcted despite settings being correct and controller is shown to be detected my Minecraft. Anytime I try and press the re-bind button it immediately binds to LT+RT

bladehorton avatar Jul 27 '22 12:07 bladehorton

(NOTE: Pro controllers don't work either)

bladehorton avatar Jul 27 '22 12:07 bladehorton

Does the controller name appear orange in the settings?

Motschen avatar Jul 27 '22 14:07 Motschen

Can reproduce on Arch Linux. The Xbox Series controller works, but the Xbox One controller does not.

Does the controller name appear orange in the settings?

It does.

The Linux gamepad-tool app detects all of the button presses just fine, but the mod does nothing when buttons are pushed.

Let me know if you need any logs or controller mappings uploading, I'd be happy to do so!

doinkers avatar Jul 27 '22 14:07 doinkers

The orange text indicates missing mappings, try creating one using gamepad-tool (https://generalarcade.com/gamepadtool/) and paste it into the Custom Mappings section. If that works, you might as well want to contribute the mapping to https://github.com/gabomdq/SDL_GameControllerDB so other people using the same Controller don't have to do that themselves.

Motschen avatar Jul 27 '22 19:07 Motschen

The orange text indicates missing mappings, try creating one using gamepad-tool (https://generalarcade.com/gamepadtool/) and paste it into the Custom Mappings section. If that works, you might as well want to contribute the mapping to https://github.com/gabomdq/SDL_GameControllerDB so other people using the same Controller don't have to do that themselves.

I tried that, sorry I didn't make it clear in my reply. The gamepad-tool detects all the buttons correctly, but even after pasting the mappings into the Custom Mappings, it doesn't work.

doinkers avatar Jul 27 '22 22:07 doinkers

Does the controller name appear orange in the settings?

Yes it does. Both the Xbox and Pro controller show up as orange. I'll add this it a gen 2 controller that came with a One S, not a gen 1 or a Series X controller

Can reproduce on Arch Linux. The Xbox Series controller works, but the Xbox One controller does not. Seems a bit weird. I even installed all available drivers for 360 and One controllers alike, none changed anything

The Linux gamepad-tool app detects all of the button presses just fine, but the mod does nothing when buttons are pushed.

Pretty much sums up the whole thing. What I don't get is why it does this with Switch controllers. I could understand DS4s, they are a bit weird, and Switch kinda makes sense, as you need a driver for it, bus Xbox controllers can technically work out of the box

bladehorton avatar Jul 28 '22 00:07 bladehorton

The orange text indicates missing mappings, try creating one using gamepad-tool (https://generalarcade.com/gamepadtool/) and paste it into the Custom Mappings section.

Also doesn't work. Plus the "missing mappings" was just for other mods I had installed at the time, but it still shows up as orange without them. Maybe missing the mod menu mappings

bladehorton avatar Jul 28 '22 00:07 bladehorton

With "missing mappings" I mean missing controller mappings

Motschen avatar Jul 28 '22 07:07 Motschen

Could you try if it also happens on MidnightControls 1.3.0?

Motschen avatar Jul 28 '22 07:07 Motschen

Could you try if it also happens on MidnightControls 1.3.0?

It doesn't seem to work in 1.3.0 either. I used gamepad-tool again, still to no avail.

050000005e040000200b000011050000,Xbox One S Controller,a:b0,b:b1,x:b3,y:b4,back:b10,guide:b12,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.0,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a5,righttrigger:a4,platform:Linux,

doinkers avatar Jul 28 '22 14:07 doinkers

Weird. Have you tried using the xone driver? It aims to improve Xbox controller support on Linux. I can't replicate the issue, since the only Xbox controller I own is an Afterglow Xbox One controller and it works perfectly for me both on Fedora and Arch Linux.

Motschen avatar Jul 28 '22 14:07 Motschen

Weird. Have you tried using the xone driver? It aims to improve Xbox controller support on Linux. I can't replicate the issue, since the only Xbox controller I own is an Afterglow Xbox One controller and it works perfectly for me both on Fedora and Arch Linux.

xone doesn't seem to support Bluetooth, but I'll try it wired just to test it out.

doinkers avatar Jul 28 '22 14:07 doinkers

Interesting. After installing the xone driver, the controller works when its plugged in. Even more interestingly, it now works properly over Bluetooth after unplugging the cable. image

So, a workaround would be to install the xone driver, plug it in, then connect the controller again over Bluetooth.

doinkers avatar Jul 28 '22 15:07 doinkers

When I first connected the Xbox controller it worked fine, did not appear orange. Today when I tried connecting again it turned orange and no longer works.

I'm on SteamDeck, using MidnightControls 1.5.0+1.19

bendavis78 avatar Sep 22 '22 23:09 bendavis78

When I first connected the Xbox controller it worked fine, did not appear orange. Today when I tried connecting again it turned orange and no longer works.

I'm on SteamDeck, using MidnightControls 1.5.0+1.19

Yeah, the orange text indicates missing mappings. For some reason the 'xone' driver changes the controllers GUID it seems, so the mappings will no longer work correctly. Try creating a custom mapping using gamepad-tool (https://generalarcade.com/gamepadtool/) and paste it into the Custom Mappings section. If that works, you might as well want to contribute the mapping to https://github.com/gabomdq/SDL_GameControllerDB so other people using the same Controller with xone don't have to do that themselves.

Motschen avatar Sep 23 '22 14:09 Motschen

I got exactly the same issues. Using linux with xpadneo drivers. Controller in orange (it's...the same that like a xbox 360 controller, really you need a layout for this decade old layout ??) and it's not recognize input.

tr1p0p avatar Nov 24 '22 15:11 tr1p0p

Hey, I have the same issue. To my knowledge we should not even need drivers since the kernel comes with a driver for XBOX controllers and joycons trough evdev. I am using the latest Fedora version. https://gamepad-tester.com/ recognizes my controller just fine too and I am on a wireless xbone controller

dhalucario avatar Nov 27 '22 21:11 dhalucario

Hey, I have the same issue. To my knowledge we should not even need drivers since the kernel comes with a driver for XBOX controllers and joycons trough evdev. I am using the latest Fedora version. https://gamepad-tester.com/ recognizes my controller just fine too and I am on a wireless xbone controller

Can you tell me if the controller also works in this program: https://generalarcade.com/gamepadtool/ ?

Motschen avatar Nov 28 '22 19:11 Motschen

Hey, I have the same issue. To my knowledge we should not even need drivers since the kernel comes with a driver for XBOX controllers and joycons trough evdev. I am using the latest Fedora version. https://gamepad-tester.com/ recognizes my controller just fine too and I am on a wireless xbone controller

Can you tell me if the controller also works in this program: https://generalarcade.com/gamepadtool/ ?

Yes, I pressed some buttons for show too: image

dhalucario avatar Dec 02 '22 16:12 dhalucario

I have the same issue

DivineEssentia avatar Dec 12 '22 01:12 DivineEssentia

Same

BadKiko avatar Apr 24 '23 08:04 BadKiko

I'm having the same issue on Ubuntu 23.04 with an Xbox One X controller, both wired and wireless, and both with and without the xone driver installed. I wanted to add that when I enabled the debug setting and looked at the logs, the controller says "Gamepad: false". Could that be part of the issue? Here's the relevent section:

[MidnightControls] Controller #0 name: "Microsoft X-Box One S pad"
 GUID: 030000005e040000ea0200000f050000
 Gamepad: false

aaronjamt avatar Sep 23 '23 21:09 aaronjamt

All issues related to this specific controller should now be reported in this issue.

Motschen avatar Feb 14 '24 10:02 Motschen

Interesting. After installing the xone driver, the controller works when its plugged in. Even more interestingly, it now works properly over Bluetooth after unplugging the cable. image

So, a workaround would be to install the xone driver, plug it in, then connect the controller again over Bluetooth.

Mine works plugged in, but this workaround doesn't work for me.

jwtaufer avatar Aug 22 '24 03:08 jwtaufer