|
|
@ -132,7 +132,7 @@ where TEventType: ToEventType<TControllerID>,
|
|
|
|
|
|
|
|
|
|
|
|
/// Main processing loop. Takes input event and returns an option with processing result
|
|
|
|
/// Main processing loop. Takes input event and returns an option with processing result
|
|
|
|
/// If the mapping was found result will be set, otherwise None
|
|
|
|
/// If the mapping was found result will be set, otherwise None
|
|
|
|
fn process_event(&mut self, event: &TEventType) -> Option<ProcessingResult<TUserAction>> {
|
|
|
|
fn process_event(&self, event: &TEventType) -> Option<ProcessingResult<TUserAction>> {
|
|
|
|
if let Some(event_type) = event.to_raw() {
|
|
|
|
if let Some(event_type) = event.to_raw() {
|
|
|
|
if let Some(action) = self.keymap.get(&event_type) {
|
|
|
|
if let Some(action) = self.keymap.get(&event_type) {
|
|
|
|
if self.controller_id.is_some() && self.controller_id != event.controller_id() {
|
|
|
|
if self.controller_id.is_some() && self.controller_id != event.controller_id() {
|
|
|
|