Exemple #1
0
 ButtonEvent(const Task::IdPair::Primary&primary,
             const InputDevicePtr &dev,
             KeyEvent event, unsigned int key, Modifier mod)
     : InputEvent(dev, IdPair(primary,
                    getSecondaryId(key, mod, dev))),
       mEvent(event),
      mButton(key),
      mModifier(mod) {
 }
Exemple #2
0
 MouseDownEvent(const IdPair::Primary &priId,
                 const PointerDevicePtr &dev,
                 float xstart, float ystart, float xend, float yend,
                 float lastx, float lasty,
                 int cursorType, int button,
                 int pressure, int pressureMin, int pressureMax)
     : MouseEvent(IdPair(priId, getSecondaryId(button)),
                  dev, xend, yend, cursorType) {
     mButton = button;
     mXStart = xstart;
     mYStart = ystart;
     mLastX = lastx;
     mLastY = lasty;
     mPressure = pressure;
     mPressureMin = pressureMin;
     mPressureMax = pressureMax;
 }
Exemple #3
0
 WindowEvent(const IdPair::Primary &priId, int data1, int data2)
     : Task::Event(IdPair(priId, IdPair::Secondary::null())) {
     mData1 = data1;
     mData2 = data2;
 }
Exemple #4
0
 MouseHoverEvent(const PointerDevicePtr &dev,
            float x, float y, int cursorType)
     : MouseEvent(IdPair(getEventId(), getSecondaryId(dev)), dev, x, y, cursorType) {
 }
Exemple #5
0
 TextInputEvent(const InputDevicePtr &dev, char *text)
     : InputEvent(dev, IdPair(getEventId(), getSecondaryId(dev))),
                              mText(text) {
 }
Exemple #6
0
 AxisEvent(const InputDevicePtr &dev, unsigned int axis, AxisValue value)
     : InputEvent(dev, IdPair(getEventId(), getSecondaryId(dev, axis))) {
     mAxis = axis;
     mValue = value;
 }