AgreeableDeerGames / GameBackbone

2D game framework
MIT License
11 stars 4 forks source link

Asymmetric Event Comparisons for EventComparator #252

Open lavinrp opened 4 years ago

lavinrp commented 4 years ago

Describe the solution you'd like It should be possible to have a EventCompatator allow both events with shift held down and events without shift held down if the user doesn't care about shift. If the user does care about shift then only key events with shift should be accepted.

We should define (and comment) a difference between the lhs and rhs inputs in EventComparator. We should define the lhs event as being the expected event and rhs being the input event.

We should then update our default Comparators to only care about shift / control being held if the expected event has these set.