Sorry for the sucky thread title. Anyway, in this one script I've submitted, I was kinda forced to use a crapload of if conditions to check if buttons A, B, C, X, Y, Z, L, R, F5, F6, F7, F8, F9, UP, DOWN, LEFT, RIGHT, ALT, CTRL or SHIFT was being pressed.
Is there a better way to check if one of multiple buttons were being tapped instead of doing that? Am I missing something? :crazy:
Code:
#Buttons
if Input.trigger?(Input::R) or Input.trigger?(Input::L)
break
end
if Input.trigger?(Input::A) or Input.trigger?(Input::B)
break
end
if Input.trigger?(Input::C) or Input.trigger?(Input::X)
break
end
if Input.trigger?(Input::Y) or Input.trigger?(Input::Z)
break
end
if Input.trigger?(Input::UP) or Input.trigger?(Input::DOWN)
break
end
if Input.trigger?(Input::LEFT) or Input.trigger?(Input::RIGHT)
break
end
if Input.trigger?(Input::ALT) or Input.trigger?(Input::CTRL)
break
end
if Input.trigger?(Input::SHIFT) or Input.trigger?(Input::F5)
break
end
if Input.trigger?(Input::F6) or Input.trigger?(Input::F7)
break
end
if Input.trigger?(Input::F8) or Input.trigger?(Input::F9)
break
end
#Buttons End
Is there a better way to check if one of multiple buttons were being tapped instead of doing that? Am I missing something? :crazy: