#Can run_if handle "this input just pressed OR this other input just pressed"?

3 messages · Page 1 of 1 (latest)

compact hornet
#

I only see documentation on a single button press detection. But maybe my systems should be separated by button. Idk.

ionic lotus
#

For example:

jump.run_if(
  input_just_pressed(KeyCode::Space)
  .or_else(
    input_just_pressed(KeyCode::KeyW)
  )
)