public void DispatchRawInputEvent(ERawInputEventType eventType, object eventData) { ERawInputMetaType metaType = InputUtil.GetMetaTypeOfRawEvent(eventType); switch (metaType) { case ERawInputMetaType.Touch: _DispatchTouchRawInputEvent(eventType, eventData); break; case ERawInputMetaType.Axis: _DispatchAxisRawInputEvent(eventType, eventData); break; case ERawInputMetaType.Keyboard: _DispatchKeyboardRawInputEvent(eventType, eventData); break; case ERawInputMetaType.Mouse: _DispatchMouseRawInputEvent(eventType, eventData); break; default: break; } }