timkurvers / valheim-macos

Build-your-own Valheim build for macOS
MIT License
274 stars 14 forks source link

Controller inputs (PS5 Dualsense) incorrect #11

Open NaccacheC opened 1 year ago

NaccacheC commented 1 year ago

When using a dualsense controller, the game recognises the controller but the inputs are all jumbled. Input is fine within Steam Big Picture. When the game is launched, Steam recognises the dualsense controller, and an Xbox 360 controller that shows no inputs.

timkurvers commented 1 year ago

Hm, bit out of my depth here. I am assuming that controller works just fine for other Steam games?

NaccacheC commented 1 year ago

Yeah sorry, should have mentioned that. The controller works fine both with and without steam controller support in other games. Hoping someone else might be able to chip in, thanks!

timkurvers commented 1 year ago

Another user mentioned they got the Steam Overlay working by adding Valheim as a non-Steam game. Not sure if the overlay matters for controller input, but worth a shot.

Ghostkwebb commented 1 year ago

Well the game doesn't even detect my ds4 for some reason

wujekbogdan commented 1 year ago

The same applies to Xbox Series X controller. It is recognized, but the mapping is off.

Tarik1700 commented 9 months ago

Same issue here, dualsense is fine in macos and steam, but in game the up and down of right joystick is not mapped or recognized at all

sandlotie commented 7 months ago

Same thing, but if you use Steam Input and replace everything with keyboard buttons, and use the joystick as a mouse, it works without any problems, as if the game itself does not understand gamepad input. (DualSense)

ellkrauze commented 6 months ago

@sandlotie Hello! Would you kindly share the details how exactly did you "replaced everything with keyboard buttons, and used the joystick as a mouse" in the Steam Input?

sandlotie commented 6 months ago

@sandlotie Hello! Would you kindly share the details how exactly did you "replaced everything with keyboard buttons, and used the joystick as a mouse" in the Steam Input?

@ellkrauze I moved Valheim.app to applications folder, open Steam for mac and just go to Steam Library -> Valheim -> Properties -> Controller -> Steam Input turn on and after this you see Controller button on Valheim page in library. You click on this button and a menu opens to select the controller layout and you can either create your own or find a suitable layout in the community layouts that uses the keyboard buttons instead of the controller buttons. Although Steam overlay doesn't work in the game itself, but after starting the game it shows that I'm playing Valheim and the layout selected in Steam Input is applied.

Personally, the layout of Valheim Controls from mugg455 suited me best after some minor changes. Although the interaction with menus, like chests and inventory can be frustrating. But overall it's playable. If I'm not clear about something, then tell me

image
tbergeron commented 6 months ago

Same thing here with a DS4 nothing works. Wish I could use it.

ellkrauze commented 6 months ago

The Xbox controller works well when connected via Bluetooth. If you connect it correctly, you can move the cursor with the right stick. However, the game itself is not controller friendly.

SIX10 commented 6 months ago

The Xbox controller works well when connected via Bluetooth. If you connect it correctly, you can move the cursor with the right stick. However, the game itself is not controller friendly.

What is your method for connecting the Xbox controller to Bluetooth? I've found multiple ways for MacOS and they've all been janky for me so far.

ellkrauze commented 6 months ago

@SIX10 I usually connect my Xbox controller the following way:

  1. Press and hold the controller's Connect button for a few seconds to put the controller into pairing mode. This makes it discoverable by your Apple device.
  2. Open Bluetooth settings on your macbook, then select the controller from the list of nearby devices.
  3. Now the cursor can be moved using the right stick. image image
ezamelczyk commented 5 months ago

My dualsense is not picked up at all by valheim. Works fine in other games native and under wine.

ezamelczyk commented 5 months ago

I do have to admit that I'm very impressed by this project. With fixed controller handling IG could confidently put it up on steam as a port and I don't think people would've complained at all. It's running very well on my m1 pro. I imagine with proper metal support and arm build it will be buttery smooth.

jacktho commented 3 months ago

+1 for the Switch Pro Controller

It does work if I stream the game with remote play from windows to the mac with the gamepad connected to the mac. All the mappings then work just like in Windows.