ugfx/src/ginput/ginput.c

55 lines
1010 B
C
Raw Normal View History

/*
2013-06-15 11:37:22 +00:00
* This file is subject to the terms of the GFX License. If a copy of
* the license was not distributed with this file, you can obtain one at:
*
2018-10-01 15:32:39 +00:00
* http://ugfx.io/license.html
*/
/**
2015-05-16 18:17:50 +00:00
* @file src/ginput/ginput.c
* @brief GINPUT subsystem common code.
*
* @addtogroup GINPUT
* @{
*/
#include "../../gfx.h"
#if GFX_USE_GINPUT
2014-09-16 22:44:31 +00:00
#if GINPUT_NEED_MOUSE
extern void _gmouseInit(void);
extern void _gmouseDeinit(void);
#endif
#if GINPUT_NEED_KEYBOARD
extern void _gkeyboardInit(void);
extern void _gkeyboardDeinit(void);
#endif
2014-09-16 22:44:31 +00:00
void _ginputInit(void)
{
2014-09-16 22:44:31 +00:00
#if GINPUT_NEED_MOUSE
_gmouseInit();
#endif
#if GINPUT_NEED_KEYBOARD
_gkeyboardInit();
#endif
/**
* This should really call an init routine for each ginput sub-system.
* Maybe we'll do this later.
*/
}
void _ginputDeinit(void)
{
#if GINPUT_NEED_KEYBOARD
_gkeyboardDeinit();
#endif
2014-09-16 22:44:31 +00:00
#if GINPUT_NEED_MOUSE
_gmouseDeinit();
#endif
}
#endif /* GFX_USE_GINPUT */
/** @} */