summaryrefslogtreecommitdiff
path: root/arm9/source/devices/input.h
blob: e62bdd39da78e469e3483fb40958fce84bd5a14d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef INPUT_H_
    #define INPUT_H_

    typedef struct {
        bool pointer;    // pointer active
        bool keyboard;   // keyboard active
        u16 x,y;         // pointer position
        u8 navigation;   // navigation state
        u8 gamepad;      // gamepad state
        bool wake;       // wake flag
    } InputDevice;

    void inp_read_gamepad(InputDevice *inp);
    void inp_read_navigation(InputDevice *inp);
    void inp_read_touch(InputDevice *inp);
#endif