- Main Page
- Classes
- Files

- File List
- File Members

# flInput.h

Go to the documentation of this file.

    00001 // Funclib Input v1.0.0 (CORE)
    00002 //
    00003 // This module contains functions for input polling.
    00004 // It adds button states to make input handling easier.
    00005 //
    00006 // Contributor(s): Flatmush
    00007
    00008
    00009
    00010 #ifndef FLINPUT_H
    00011 #define FLINPUT_H
    00012
    00013 #include "flGlobal.h"
    00014
    00015 #if FL_INPUT
    00016
    00017 #ifdef __cplusplus
    00018 extern "C" {
    00019 #endif
    00020
    00021
    00022
    00023 #define INPUT_STILL_UP   0
    00024 #define INPUT_JUST_UP    2
    00025 #define INPUT_STILL_DOWN 1
    00026 #define INPUT_JUST_DOWN  3
    00027
    00028 #define INPUT_BUTTON_SELECT   0
    00029 #define INPUT_BUTTON_START    3
    00030 #define INPUT_DPAD_UP         4
    00031 #define INPUT_DPAD_RIGHT      5
    00032 #define INPUT_DPAD_DOWN       6
    00033 #define INPUT_DPAD_LEFT       7
    00034 #define INPUT_BUTTON_LTRIGGER 8
    00035 #define INPUT_BUTTON_RTRIGGER 9
    00036 #define INPUT_BUTTON_TRIANGLE 12
    00037 #define INPUT_BUTTON_CIRCLE   13
    00038 #define INPUT_BUTTON_CROSS    14
    00039 #define INPUT_BUTTON_SQUARE   15
    00040
    00041 #define INPUT_BUTTON_HOME     16
    00042 #define INPUT_BUTTON_HOLD     17
    00043 #define INPUT_BUTTON_NOTE     18
    00044 #define INPUT_BUTTON_SCREEN   19
    00045 #define INPUT_BUTTON_VOLUP    20
    00046 #define INPUT_BUTTON_VOLDOWN  21
    00047 #define INPUT_BUTTON_WLANUP   22
    00048 #define INPUT_BUTTON_REMOTE   23
    00049 #define INPUT_BUTTON_DISC     24
    00050 #define INPUT_BUTTON_MS       25
    00051
    00052
    00053
    00058 extern void       inputInit();
    00059
    00065 extern u8         inputCheck(u8 inInput);
    00066
    00072 extern bool       inputDown(u8 inInput);
    00073
    00077 extern void       inputPoll();
    00078
    00083 extern void       inputLock(float inTime);
    00084
    00093 extern void       inputPauseFunc(u8 inInput, u8 inState, void (*inFunc)());
    00094
    00095 #ifdef __cplusplus
    00096 }
    00097 #endif
    00098
    00099 #endif
    00100
    00101 #endif