Changeset 326 for trunk/src/input.h


Ignore:
Timestamp:
Feb 1, 2011, 2:20:05 AM (11 years ago)
Author:
sam
Message:

Test entity alignment features. Also, start working on the mouse tracking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.h

    r294 r326  
    1919#include "matrix.h"
    2020
     21class WorldEntity;
     22
    2123class Input
    2224{
    2325public:
     26    /* These methods are general queries */
    2427    static float2 GetAxis(int axis);
     28    static int2 GetMousePos();
     29    static int3 GetMouseButtons();
     30
     31    /* Entities can subscribe to events */
     32    static void ListenMouse(WorldEntity *e);
     33    static void UnlistenMouse(WorldEntity *e);
     34
     35    /* These methods are called by the underlying input listeners */
    2536    static void SetMousePos(int2 coord);
    26     static int2 GetMousePos();
    2737    static void SetMouseButton(int index);
    2838    static void UnsetMouseButton(int index);
    29     static int3 GetMouseButtons();
    3039};
    3140
Note: See TracChangeset for help on using the changeset viewer.