I- huh. I have to figure out how I’ve managed to fail the touchscreen PC platform so badly… this is so strange.
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.
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!
These threads might interest you:
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)
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
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?
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…
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.
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: :open_mouth:](https://doy2mn9upadnk.cloudfront.net/images/emoji/twitter/open_mouth.png?v=12)
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()