Help Test Platform Detection

I- huh. I have to figure out how I’ve managed to fail the touchscreen PC platform so badly… this is so strange.

2 Likes

If it’s of any help, Chromebooks run the Android version of Roblox. I guess this is more of a challenge as you still need to be able to detect whether it’s a touchscreen Chromebook or not, without picking it up as Android.

At least the bloody cursor didn’t fail to load in your game like in all the rest

I’ve just tested it in studio and I don’t think that UIS.TouchEnabled works for touchscreen. But it does still register TouchTap.
I’m using a Windows HP computer.

1 Like

Thanks for your help everyone. I’m going to pause for the night and pick this up again in the morning, I’m super burned out after this long day.

I’m sure we can get this working!

4 Likes

These threads might interest you:

https://devforum.roblox.com/t/players-with-touchscreen-computers-cannot-play-my-game-as-it-shows-it-as-not-available-on-their-platform/34869

And for this thread:
https://devforum.roblox.com/t/touchenabled-and-laptops/10261

It stated that it doesn’t work for touchscreen laptops?

joined on a MacBook Air, game correctly guessed PC (close enough)

Tried a 2nd time. Supposedly an unknown tablet now.

open source when :eyes:

This seems like a great module, but I fail to understand why it would be needed. ROBLOX already provides the needed APIs to determine the type of input a user is giving. What would the ability to detect the platform of a player help with?

Note: I’m just curious on how this module may possibly benefit me, and am not trying to be rude in any way.

Since I’m having an issue currently with Windows 10 acting odd, I decided to test the normal version which I heard only detects PC and not mobile? Then tested it on Windows 10, seems odd but works I think?

PC (Normal Desktop)

https://gyazo.com/9379abfee9bce68d9c383b46ce4ead0d

Windows 10 Roblox

https://gyazo.com/9558653284f5fb476e189b40420e7e91

1 Like

I’m on a Mac BookPro …

It said, “PC”

I am on an Apple phone and it said apple phone. Can’t wait to see this open source!

I added some GUIs to expose the data so I can better see why things are going wrong. This will help me figure out the cause of the issues.

If you had incorrect detection, please go again and post the screenshot so I can have this new detailed insight!

cc: @VegetationBush @ClockworkSquirrel

as the others said, TouchEnabled fails to pick up on my Lenovo Laptop. Dragging style/UI looks identical to @VegetationBush

It’s worth to try and fixing, but it might be that relying on TouchEnabled to distinguish between PC and Touchscreen PC is not enough?

1 Like

That’s really stupid behavior- UIS.TouchEnabled is supposed to show if the device has touch enabled! The fact that it doesn’t pick up on touchscreen laptops is an issue on Roblox’s end then…

3 Likes

Roblox did mention that relying on these things are never accurate and that new devices are always going to be released and out in market therefore its hard to classify what defines each device into each category. Personally I just do Mobile, Console, and PC. It’s extra to try and weed out platform, touchscreen, or other fancy features and it usually only partly works.

Not sure if this is my device and how it handles the touchscreen but my Laptop with touchscreen is being seen as a PC with no TouchEnabled. Even after providing input with the touch screen it doesn’t change.

1 Like

I don’t know if this is supposed to happen, but the Loading text was stuck there forever:


I don’t know if this loads instantly or not, whatever, I got this warning in the console, I don’t know if this would help:

I forgot to mention! :open_mouth:, I’m using a Motorola e6.

Roblox documentation is utterly useless and I hate it.

It says here that it uses gyro, not accel. Sigh. Clearly not the case.

Also, my code only checks gravity if you have an accel! It seems like UIS is absolutely worthless and cannot accurately give device data.

if UIS.AccelerometerEnabled then
	local Grav = UIS:GetDeviceGravity()
3 Likes