| 78 | /////////////////////////////////////////// |
| 79 | |
| 80 | void input_unsubscribe(input_source_ source, button_state_ input_event, void (*input_event_callback)(input_source_ source, button_state_ input_event, const pointer_t &in_pointer)) { |
| 81 | for (int32_t i = input_listeners.count-1; i >= 0; i--) { |
| 82 | if (input_listeners[i].source == source && |
| 83 | input_listeners[i].event == input_event && |
| 84 | input_listeners[i].event_callback == input_event_callback) { |
| 85 | input_listeners.remove(i); |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /////////////////////////////////////////// |
| 91 | |