In a script with keybindings, how do I disable the controller inputs so the keybind is only binded to a controller?
Check out the first argument of IS_CONTROL_PRESSED
what about it? I dont know what to do
Adding onto @TheIndraâs statement,
Go into your script. Look for the part in your scriptâs function that says âIsControlJustPressedâ The first argument is 0, 1, or 2. Change that number to a different one and experiment. I donât know which number is keyboard + mouse only but I do believe â1â would support both controller and keyboard + mouse.
if [insert function here] then
if IsControlJustPressed(1, 315) --[[ change the 1 to 0, 1, 2 ]] then
[Insert Reaction Here]
end
I know this is 2 years later but this statement would help others searching for the answer.
1 Like
Know this is a while later, but how would I disable it is the script used this to add the keybind: MenuKeybind = 170 thanks for any help!