Ignore:
Timestamp:
Oct 12, 2012, 1:04:13 AM (8 years ago)
Author:
sam
Message:

input: add the Keyboard abstraction object type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input/input.h

    r1897 r2009  
    2323
    2424#include "lol/math/vector.h"
     25#include "input/keyboard.h"
    2526#include "input/stick.h"
    2627
     
    433434
    434435    /* These methods are called by the underlying input listeners */
     436    /* FIXME: this should disappear and be replaced by an input
     437     * system that abstracts mice */
    435438    static void SetMousePos(ivec2 coord);
    436439    static void SetMouseButton(int index);
    437440    static void UnsetMouseButton(int index);
    438441
     442    /* Keyboard handling */
     443    static Keyboard *CreateKeyboard();
     444    static void DestroyKeyboard(Keyboard *keyboard);
     445
     446    static Keyboard *TrackKeyboard(int desired);
     447    static void UntrackKeyboard(Keyboard *keyboard);
     448
    439449    /* Joystick handling */
    440450    static Stick *CreateStick();
Note: See TracChangeset for help on using the changeset viewer.