4 private bool m_bControllerOnly;
6 private Widget m_Widget;
8 protected void OnInputDeviceIsGamepad(
bool isGamepad)
10 bool enable = m_bControllerOnly == isGamepad;
11 m_Widget.SetEnabled(enable);
12 m_Widget.SetVisible(enable);
14 override void HandlerAttached(Widget w)
21 GetGame().OnInputDeviceIsGamepadInvoker().Insert(OnInputDeviceIsGamepad);
23 override void HandlerDeattached(Widget w)
27 GetGame().OnInputDeviceIsGamepadInvoker().Remove(OnInputDeviceIsGamepad);