private void ListenMouseEventImpl(Mouse.Code c, MyAction <int, int> handler) { if (m_MouseHandlers.ContainsKey((int)c)) { m_MouseHandlers[(int)c] = handler; } else { m_MouseHandlers.Add((int)c, handler); } }
public static bool IsButtonPressed(Mouse.Code c) { return(s_Instance.IsButtonPressedImpl(c)); }
public static void ListenMouseEvent(Mouse.Code c, MyAction <int, int> handler) { s_Instance.ListenMouseEventImpl(c, handler); }
private bool IsButtonPressedImpl(Mouse.Code c) { return(m_ButtonPressed[(int)c]); }