IronNoob

Please login or register.

Login with username, password and session length
Advanced search  

News:

Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.

Author Topic: Functions for getting iPad-ness  (Read 356 times)

0 Members and 1 Guest are viewing this topic.

shedletsky

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1152
    • View Profile
Functions for getting iPad-ness
« on: October 22, 2012, 12:06:52 pm »

game:GetService("UserInputService").MouseEnabled
game:GetService("UserInputService").KeyboardEnabled
game:GetService("UserInputService").GamepadEnabled
game:GetService("UserInputService").TouchEnabled

I'm told these exist. Not sure if they are in the build I sent out to you guys, but if it's not there now it will be soon.
Logged
John Shedletsky on Twitter Counter" width="88" height="26" border="0

CloneTrooper1019

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1354
  • Gamer - Lua Programmer - Maniac - Ginger
    • View Profile
    • My dumb website
Re: Functions for getting iPad-ness
« Reply #1 on: October 22, 2012, 12:19:33 pm »

game:GetService("UserInputService").MouseEnabled
game:GetService("UserInputService").KeyboardEnabled
game:GetService("UserInputService").GamepadEnabled
game:GetService("UserInputService").TouchEnabled

I'm told these exist. Not sure if they are in the build I sent out to you guys, but if it's not there now it will be soon.

Now could you give us something to detect if they are using an iOS device?
Logged


mat852

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3591
  • Lua / Visual Basic / bit of C#
    • View Profile
    • Youtube Channel
Re: Functions for getting iPad-ness
« Reply #2 on: October 22, 2012, 12:26:17 pm »

how would we use these?
Logged
    

Intel i5 3570K @ 4.4GHz
8GB Corsair Vengeance RAM
GeForce GTX 680 DirectCU II

ikutoisahobo

  • Merry Christmas!
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 22471
  • Former Global Moderator Q2-Q4 - 2012
    • View Profile
    • My Twitter
Re: Functions for getting iPad-ness
« Reply #3 on: October 22, 2012, 12:27:13 pm »

how would we use these?

You throw em in lol.
Logged
    

Luckymaxer

  • RBX Spec Ops
  • Jr. Member
  • *****
  • Offline Offline
  • Posts: 68
    • View Profile
Re: Functions for getting iPad-ness
« Reply #4 on: October 22, 2012, 01:32:33 pm »

I'm told these exist. Not sure if they are in the build I sent out to you guys, but if it's not there now it will be soon.

By that, do you mean the Roblox App for the iOS devices? If so, that's a bit of a problem because I don't have any iOS devices.
Logged

mat852

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3591
  • Lua / Visual Basic / bit of C#
    • View Profile
    • Youtube Channel
Re: Functions for getting iPad-ness
« Reply #5 on: October 22, 2012, 05:39:15 pm »

how would we use these?

You throw em in lol.
but wheeeeeeeeeeeeeeeeeeeeeere?
Logged
    

Intel i5 3570K @ 4.4GHz
8GB Corsair Vengeance RAM
GeForce GTX 680 DirectCU II

Mattchewy

  • RBX Spec Ops
  • Full Member
  • *****
  • Offline Offline
  • Posts: 241
  • My hero... ^
    • View Profile
    • TacticalNoob
Re: Functions for getting iPad-ness
« Reply #6 on: October 22, 2012, 05:44:01 pm »

Not meaning to spread topics across multiple threads, but can't you please accept "Matthew Shockley" on TestFlight.  I have 3GS and iPhone 5...
Logged
If I asked you for one hundred dollars, would the answer to that question be the same as the answer to this question?

Luckymaxer

  • RBX Spec Ops
  • Jr. Member
  • *****
  • Offline Offline
  • Posts: 68
    • View Profile
Re: Functions for getting iPad-ness
« Reply #7 on: November 10, 2012, 04:50:03 pm »

Now that I'm a Wiki writer for Roblox, I'm going to see if I could document this service :P.

Edit:

Link: http://wiki.roblox.com/index.php/RBX.lua.UserInputService_(Service)
« Last Edit: November 10, 2012, 07:40:26 pm by Luckymaxer »
Logged

Spikey490

  • RBX Spec Ops
  • Full Member
  • *****
  • Offline Offline
  • Posts: 137
  • Lol Hai
    • View Profile
    • ROBLOX - Profile
Re: Functions for getting iPad-ness
« Reply #8 on: November 12, 2012, 01:22:28 am »

I've tried using these but I can't get them to work.
Logged
Spikey490 =P
-"Lol Hai"

CloneTrooper1019

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1354
  • Gamer - Lua Programmer - Maniac - Ginger
    • View Profile
    • My dumb website
Re: Functions for getting iPad-ness
« Reply #9 on: December 04, 2012, 07:38:06 pm »

Just got released.
Logged


BAUER102

  • Full Member
  • ***
  • Offline Offline
  • Posts: 199
  • Full-time God
    • View Profile
Re: Functions for getting iPad-ness
« Reply #10 on: February 12, 2013, 03:29:18 am »

For the guys requesting a method to check if it's an iOS device:

game:GetService("UserInputService").TouchEnabled

is obviously true whenever it's an iOS device
Logged
German Coding Maniac
Main Twitter || Borderline Twitter || ROBLOX Account

CloneTrooper1019

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1354
  • Gamer - Lua Programmer - Maniac - Ginger
    • View Profile
    • My dumb website
Re: Functions for getting iPad-ness
« Reply #11 on: February 13, 2013, 12:31:48 pm »

For the guys requesting a method to check if it's an iOS device:

game:GetService("UserInputService").TouchEnabled

is obviously true whenever it's an iOS device

Don't reply to a post thats 3 months old.

This forum area used to be private to the Rbx Spec Ops (Beta testers for the mobile app)
Logged


Patchlate

  • Newbie
  • *
  • Offline Offline
  • Posts: 31
    • View Profile
Re: Functions for getting iPad-ness
« Reply #12 on: March 06, 2013, 11:32:07 am »

Simplify please?
Logged

Patchlate

  • Newbie
  • *
  • Offline Offline
  • Posts: 31
    • View Profile
Re: Functions for getting iPad-ness
« Reply #13 on: March 06, 2013, 11:34:42 am »

How does it work
Logged

jamjam195

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 9288
  • Why, hello there.
    • View Profile
    • Bobstudios
Re: Functions for getting iPad-ness
« Reply #14 on: March 06, 2013, 12:06:24 pm »

Simplify please?

Stop shit-posting and learn LUA first.
Logged
Why Hello There.

Alternative: Wopian
Bobstudios | WPM: 81 | World of Wopian
 

Page created in 0.158 seconds with 22 queries.