Hello staff,
While writing a supplementary solution to the issue described in my forum post, Determing Preferred Input Method: Modernized, I discovered that, while on Roblox studio, tapping the screen with a hybrid device will be read as Enum.UserInputType.MouseButton1. The same is not true on the Roblox client, where it is read correctly as Enum.UserInputType.Touch.
I have written this short script here that will help demonstrate the issue:
local UserInputService = game:GetService("UserInputService")
local TestService = game:GetService("TestService")
UserInputService.InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
TestService:Message(tostring(inputObject.UserInputType))
elseif inputObject.UserInputType == Enum.UserInputType.Touch then
warn(inputObject.UserInputType)
else
print(inputObject.UserInputType)
end
end)
Here’s the video. On the left, we see Roblox Studio, and on the right, we see the Roblox client:
This problem affects developers looking to test out hybrid compatibility on studio. It has made it so that the testing I conducted in my original forum post was only possible through the client.
Thank you for reading, have a nice day!