im attempting to make a game that includes keybinds. I've wrote a small module to simple the task. Module:
local Keys = {}
function Keys.new()
local self = Keys
return self
end
function Keys:GetKeyPressed(key)
end
return Keys
But i want to be able to bind both mouse buttons and keys. I dont now what to send as the key or how to detect whether or not its mouse or key. Keep in mind i have to store the key that is pressed when setting the keybinds.
Thank you in advance.

1 comment
by keybinds i mean they can be set by the player