class EE::Window::InputFinger

Overview

A representation of the current state of a finger touching a screen. More…

#include <inputfinger.hpp>

class InputFinger {
public:
    // fields

    Int64 id;
    Int32 x;
    Int32 y;
    float pressure;
    float xdelta;
    float ydelta;
    Int32 last_x;
    Int32 last_y;
    float lastPressure;
    bool down;
    bool wasDown;

    // methods

    bool isDown();
    bool getWasDown();
    Vector2i getPos();
};

Detailed Documentation

A representation of the current state of a finger touching a screen.

Methods

bool isDown()

Returns:

If is currently pressed

bool getWasDown()

Returns:

If was down in the last update

Vector2i getPos()

Returns:

The current position of the finger