struct CCL::MouseWheelEvent

Overview

Mouse Wheel Event. More…

#include <guievent.h>

struct MouseWheelEvent: public CCL::GUIEvent
{
    // enums

    enum EventType;
    enum WheelFlags;

    // fields

    Point where;
    KeyState keys;
    float delta;
    float deltaX;
    float deltaY;
    int wheelFlags;

    // construction

    MouseWheelEvent (
        int eventType = kWheelUp,
        const Point& where = Point (),
        const KeyState& keys = KeyState (),
        float distance = 1.f
    );

    // methods

    bool isContinuous () const;
    bool isRollOutPhase () const;
    bool isAxisToggled () const;
    bool isAxisInverted () const;
    bool isVertical () const;
    bool isHorizontal () const;
    int getOriginalDirection () const;
};

Inherited Members

public:
    // enums

    enum EventClass;

    // fields

    int eventClass;
    int eventType;
    double eventTime;

    // methods

    template  <class Event>
    const Event* as () const;

    const PointerEvent* as () const;

Detailed Documentation

Mouse Wheel Event.

<>

Methods

int getOriginalDirection () const

returns original wheel direction, reverting the axisToggled flag