version 2.8
ginput.c
Go to the documentation of this file.
1 /*
2  * This file is subject to the terms of the GFX License. If a copy of
3  * the license was not distributed with this file, you can obtain one at:
4  *
5  * http://ugfx.org/license.html
6  */
7 
8 /**
9  * @file src/ginput/ginput.c
10  * @brief GINPUT subsystem common code.
11  *
12  * @addtogroup GINPUT
13  * @{
14  */
15 #include "../../gfx.h"
16 
17 #if GFX_USE_GINPUT
18 
19 #if GINPUT_NEED_MOUSE
20  extern void _gmouseInit(void);
21  extern void _gmouseDeinit(void);
22 #endif
23 #if GINPUT_NEED_KEYBOARD
24  extern void _gkeyboardInit(void);
25  extern void _gkeyboardDeinit(void);
26 #endif
27 
28 void _ginputInit(void)
29 {
30  #if GINPUT_NEED_MOUSE
31  _gmouseInit();
32  #endif
33  #if GINPUT_NEED_KEYBOARD
34  _gkeyboardInit();
35  #endif
36  /**
37  * This should really call an init routine for each ginput sub-system.
38  * Maybe we'll do this later.
39  */
40 }
41 
42 void _ginputDeinit(void)
43 {
44  #if GINPUT_NEED_KEYBOARD
45  _gkeyboardDeinit();
46  #endif
47  #if GINPUT_NEED_MOUSE
48  _gmouseDeinit();
49  #endif
50 }
51 
52 #endif /* GFX_USE_GINPUT */
53 /** @} */
54