Example #1
0
 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);
     }
 }
Example #2
0
 public static bool IsButtonPressed(Mouse.Code c)
 {
     return(s_Instance.IsButtonPressedImpl(c));
 }
Example #3
0
 public static void ListenMouseEvent(Mouse.Code c, MyAction <int, int> handler)
 {
     s_Instance.ListenMouseEventImpl(c, handler);
 }
Example #4
0
 private bool IsButtonPressedImpl(Mouse.Code c)
 {
     return(m_ButtonPressed[(int)c]);
 }