generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Does ROBLOX support multiple mouse buttons?

Previous Thread :: Next Thread 
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
07 Nov 2014 04:16 PM
I'm getting a five button mouse(Not for the 5 buttons)
and I was wondering if I could use them at all.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Nov 2014 04:18 PM
Only five, I'm pretty sure.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
07 Nov 2014 04:18 PM
I think you could probably do it if Roblox supports a raw input check (0 is M1, 1 is M2, 2 is M3(Middle mouse) etc)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:19 PM
Only 3, and I cannot get the third one to work in Studio...
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Nov 2014 04:19 PM
Actually, you can use a premade program or make your own to make the fourth and fifth (And probably third) control buttons on your keyboard. Useful for Call of Robloxia 5, in my opinion. I certainly do it, and it allows me to keep my Halo keyboard and mouse controls on it.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
07 Nov 2014 04:20 PM
game:getService("UserInputService").InputBegan:connect(function(key)
print(key.KeyCode)
end)


Use this and see what it says when you click the buttons
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
07 Nov 2014 04:23 PM
I can't test because this computers GPU is fked and I was able to get the default graphics to 1080p, but it doesnt work anything else(not even steam)

I'm getting a new computer so I was just wondering lol

thanks
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:26 PM
@128GB: Mouse buttons are not keys.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
07 Nov 2014 04:29 PM
@Not
UserInputService works for my mouse
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:30 PM
Your extra buttons can have macros assigned, right?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
07 Nov 2014 04:31 PM
I don't know if you are talking to me or OP but I'm using a normal mouse
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:34 PM
"@Not
UserInputService works for my mouse"

Mouse should not set KeyCodes. Something is wrong there. Supported mouse functions are

Enum.UserInputType.MouseButton1
Enum.UserInputType.MouseButton2
Enum.UserInputType.MouseButton3 --I have some issues with this
Enum.UserInputType.MouseWheel
Enum.UserInputType.MouseMove
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
07 Nov 2014 04:35 PM
Well it still printed stuff for me when I clicked
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:36 PM
Was it "Unknown" by any chance?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
07 Nov 2014 04:37 PM
Yes but it still can tell you if roblox is picking up the input, which I thought was the point of the post
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Nov 2014 04:39 PM
Yeah, but KeyCode will always be Unknown (Unless the mouse button replicates a keyboard event), which is kinda useless...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image