Is it possible to detect the command key on mac (https://en.wikipedia.org/wiki/Command_key) ?
I thought maybe the Enum.KeyCode.LeftControl and Enum.KeyCode.RightControl would work, but they don't. Possible?
Is it possible to detect the command key on mac (https://en.wikipedia.org/wiki/Command_key) ?
I thought maybe the Enum.KeyCode.LeftControl and Enum.KeyCode.RightControl would work, but they don't. Possible?
I'm not sure if you can detect that specific key or not as I've never owned a mac, but you can make a script which prints the value of every key you press, then press the cmd key and see if it printed anything.
game:GetService("UserInputService").InputBegan:Connect(function(iobj, gp)
if gp then return end
print(iobj.KeyCode, iobj.KeyCode.Value)
end)
Didn't thought on doing that. And, it prints Left and Right Control (Yeah, I have a Mac and it sucks for game dev). Maybe the error is in my script.. Thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
UserInputService uses this keyboard https://en.wikipedia.org/wiki/Space-cadet_keyboard