uspgamedev / luasteam

Bindings to connect lua with Steam API
https://luasteam.readthedocs.io/en/stable/
MIT License
134 stars 25 forks source link

input.getConnectedControllers() returns empty table #50

Open carlreedw opened 1 week ago

carlreedw commented 1 week ago

I'm able to successfully initialize luasteam as well as the input module (e.g., Steam.input.init()). I'm even able to get the action set and digital/analog action handles.

However, I can't figure out how to get 'getConnectedControllers' to return controller handles. I've even tried calling Steam.input.runFrame() right before Steam.input.getConnectedControllers(), to no avail. Do you have any clues as to what's preventing luasteam or Steamworks from returning the handles?

Some extra context: I have 1 Xbox 360 controller connected to my Windows 10 machine for testing and I'm using Love2D. The love.gamepadpressed(joystick, button) callback is working -- it can identify the controller connected and which buttons are being pressed (however I'd still like to fully support SteamInput API).

Thank you!!