dhewm / dhewm3

dhewm 3 main repository
https://dhewm3.org/
GNU General Public License v3.0
1.78k stars 346 forks source link

Can't look around using an Xbox controller #597

Open jacobn28 opened 1 month ago

jacobn28 commented 1 month ago

I have the newest RC for 1.5.4, and when I connect my Xbox One controller everything works great except I can't look around at all. I mapped the "turn right/left" and "look up/down" to the right stick on my controller, but it literally does nothing. I even mapped the same commands to the left stick, to see if it was a controller problem, but that still didn't work. Anything I'm missing here? I've been over all of the settings multiple times and nothing has fixed it.

DanielGibson commented 1 month ago

What operating system are you using?

jacobn28 commented 1 month ago

Windows 10

DanielGibson commented 1 month ago

I can't reproduce this on Win10 with my XBox360 pad (I don't have an XBox One controller)

j4reporting commented 1 month ago

I did a quick test on linux with a xbox360 gamepad last night and it's the same issue. I couldn't look around with the right stick. A test today on Win10 seems to work. I think it's odd that I needed to map both analog sticks first, though. This works oob with the quake source ports QS, ironwail and vkquake. All I needed to do is map the buttons but not the analog sticks.

UPDATE: retried again on linux and no issue this time.

DanielGibson commented 1 month ago

I think it's odd that I needed to map both analog sticks first, though.

on the upside, you can configure/bind them however you like

jacobn28 commented 1 month ago

Very weird. NONE of my controllers work (XBOne, 360, and Switch) with the right stick, no matter what I do.

j4reporting commented 1 month ago

Very weird. NONE of my controllers work (XBOne, 360, and Switch) with the right stick, no matter what I do.

  1. can you test with the Windows calibration tool?
  2. does dhewm3 identify the connected controller correctly? Check the console or the log file in Document\My Games\dhewm3\dhewm3log.txt e.g. a Xbox 360 controller
    
    Detected Gamepad Xbox 360 Controller as type XBox-like
    USB IDs: 045e:028e Joystick Name: "Xbox 360 Controller" GUID: < 32 byte hex decimal string >

3.  does the mouse pointer move in the main menu?  Both analog sticks should move the mouse pointer.
4.  is any other software running that is mapping  gamepad events to keys like rewasd?
jacobn28 commented 1 month ago
  1. Windows calibration tool shows all parts of the controller working fine. I even re-calibrated it.
  2. Yup. Same exact text you pasted except it actually identifies it as an Xbox One controller.
  3. Both analog sticks do move the cursor in the menu. I mapped the zoom button to the click-in on the right stick, and even that works in-game, but when I move the stick to look around, nothing. I definitely have them mapped correctly because I've done it over about a dozen times now.
  4. Nothing that I can see. Looked through task manager and nothing should be interfering. I don't even have Steam opened.

I'm at a loss lol.