When I try to detect the gyroscope sensor in a phone using the UserInputService, it just doesn’t detect it or return false in UserInputService.GyroscopeEnabled
What I expect: UserInputService.GyroscopeEnabled should return true in devices with gyroscope
Frecuency: Always happening
Reproduction steps:
- Create a LocalScript that prints UserInputService.GyroscopeEnabled
- In certain models it prints false, even if the device has a gyroscope
Phone Model: moto g20
Android version: Android 11
Roblox Version: 2.607.548
Code:
local UIS = game:GetService("UserInputService")
UIS.DeviceRotationChanged:Connect(function(a,b)
print(b)
end)
while 1 do
wait(1)
print(UIS.GyroscopeEnabled) --false
end
The gyroscope is detected in other apps