Enhanced Input key with modifier

Hey, you could create a new trigger (that derives from Input Trigger class) and check whether or not the modifier key is currently pressed. This can be done by overridding the UpdateState function, getting the Player Input outer (APlayerController) and using one of the input utility functions, i.e. Is Input Key Down. Promote the Key to a variable so you can set it in your mapping context later.


3 Likes