-
What do you want to achieve? I want to test XBox controller input on my PC. I’ve never used an XBox controller and I’m not using this for anything but Roblox right now.
-
What is the issue? Roblox is not detecting that my controller is plugged in.
-
What solutions have you tried so far? I just bought this controller new, plugged it into my PC, and updated the driver.
I ran some code that indicated Roblox was not detecting the controller input
the code
local UserInputService = game:GetService('UserInputService')
UserInputService.GamepadConnected:Connect(function(gamepadNum)
print(('gamepad %s connected!'):format(gamepadNum))
end)
UserInputService.InputBegan:Connect(function(input, gpe)
print(input.UserInputType.Name)
if input.UserInputType == Enum.UserInputType.Gamepad1 then
print('ahhh!',input.UserInputState)
end
end)
while wait(1) do
print(UserInputService:GetGamepadConnected(Enum.UserInputType.Gamepad1))
end
I’m on Windows 8. I installed the driver and according to my PC it’s working properly but…apparently not?? I keep pressing the power button at the top but it doesn’t flash or anything. so I don’t know if the problem is that it’s not “on” or what. It’s a wired PowerA controller. Does anyone have any insight or experience using XBox controllers on PC for Roblox?