Beispiel #1
0
 public void handleKeyboardDown(object sender, KeyboardKeyEventArgs e)
 {
     Util.KeyModifiers modifiers = new Util.KeyModifiers();
     modifiers.getModifiers(Keyboard.GetState());
     UI.keyboard.modifiers            = modifiers;
     UI.keyboard.keysDown[(int)e.Key] = true;
 }
Beispiel #2
0
 public KeyDownEvent(Key key, Util.KeyModifiers modifiers, double timeStamp, double delay)
     : base(timeStamp, delay)
 {
     myName      = theName;
     myKey       = key;
     myModifiers = modifiers;
 }
Beispiel #3
0
 public void handleKeyboardDown(object sender, KeyboardKeyEventArgs e)
 {
     Util.KeyModifiers modifiers = new Util.KeyModifiers();
     modifiers.getModifiers(myWindow.Keyboard);
     ImGui.keyboard.modifiers            = modifiers;
     ImGui.keyboard.keysDown[(int)e.Key] = true;
 }
Beispiel #4
0
 public MouseButtonUpEvent(MouseButton button, Int32 x, Int32 y, Util.KeyModifiers modifiers, double timeStamp, double delay)
     : base(timeStamp, delay)
 {
     myName      = theName;
     myButton    = button;
     myX         = x;
     myY         = y;
     myModifiers = modifiers;
 }
Beispiel #5
0
 public MouseWheelEvent(Int32 x, Int32 y, Int32 val, Int32 delta, Util.KeyModifiers modifiers, double timeStamp, double delay)
     : base(timeStamp, delay)
 {
     myName      = theName;
     myX         = x;
     myY         = y;
     myVal       = val;
     myDelta     = delta;
     myModifiers = modifiers;
 }
Beispiel #6
0
 public MouseMoveEvent(Int32 x, Int32 y, Int32 xDelta, Int32 yDelta, Util.KeyModifiers modifiers, double timeStamp, double delay)
     : base(timeStamp, delay)
 {
     myName      = theName;
     myX         = x;
     myY         = y;
     myXDelta    = xDelta;
     myYDelta    = yDelta;
     myModifiers = modifiers;
 }
Beispiel #7
0
 public MouseButtonUpEvent(MouseButton button, Int32 x, Int32 y, Util.KeyModifiers modifiers, double timeStamp) : this(button, x, y, modifiers, timeStamp, 0.0)
 {
 }
Beispiel #8
0
 public MouseButtonUpEvent(MouseButton button, Int32 x, Int32 y, Util.KeyModifiers modifiers) : this(button, x, y, modifiers, TimeSource.defaultClock.currentTime(), 0.0)
 {
 }
Beispiel #9
0
 public KeyDownEvent(Key key, Util.KeyModifiers modifiers, double timeStamp) : this(key, modifiers, timeStamp, 0.0)
 {
 }
Beispiel #10
0
 public KeyDownEvent(Key key, Util.KeyModifiers modifiers) : this(key, modifiers, TimeSource.defaultClock.currentTime(), 0.0)
 {
 }
Beispiel #11
0
 public MouseWheelEvent(Int32 x, Int32 y, Int32 val, Int32 delta, Util.KeyModifiers modifiers, double timeStamp) : this(x, y, val, delta, modifiers, timeStamp, 0.0)
 {
 }
Beispiel #12
0
 public MouseWheelEvent(Int32 x, Int32 y, Int32 val, Int32 delta, Util.KeyModifiers modifiers) : this(x, y, val, delta, modifiers, TimeSource.defaultClock.currentTime(), 0.0)
 {
 }
Beispiel #13
0
 public MouseMoveEvent(Int32 x, Int32 y, Int32 xDelta, Int32 yDelta, Util.KeyModifiers modifiers, double timeStamp) : this(x, y, xDelta, yDelta, modifiers, timeStamp, 0.0)
 {
 }
Beispiel #14
0
 public MouseMoveEvent(Int32 x, Int32 y, Int32 xDelta, Int32 yDelta, Util.KeyModifiers modifiers) : this(x, y, xDelta, yDelta, modifiers, TimeSource.defaultClock.currentTime(), 0.0)
 {
 }