Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Freescale i.MX6 video driver
--- CMakeLists.txt | 2 + cmake/sdlchecks.cmake | 20 +++ configure | 51 +++++++ configure.in | 28 ++++ include/SDL_config.h.cmake | 1 + include/SDL_config.h.in | 1 + src/video/SDL_sysvideo.h | 3 + src/video/SDL_video.c | 3 + src/video/mx6/SDL_mx6events.c | 45 ++++++ src/video/mx6/SDL_mx6events_c.h | 31 +++++ src/video/mx6/SDL_mx6opengles.c | 211 ++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6opengles.h | 68 +++++++++ src/video/mx6/SDL_mx6video.c | 301 ++++++++++++++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6video.h | 78 +++++++++++ 14 files changed, 843 insertions(+) create mode 100644 src/video/mx6/SDL_mx6events.c create mode 100644 src/video/mx6/SDL_mx6events_c.h create mode 100644 src/video/mx6/SDL_mx6opengles.c create mode 100644 src/video/mx6/SDL_mx6opengles.h create mode 100644 src/video/mx6/SDL_mx6video.c create mode 100644 src/video/mx6/SDL_mx6video.h
- Loading branch information
Showing
with
843 additions
and 0 deletions.
- +2 −0 CMakeLists.txt
- +20 −0 cmake/sdlchecks.cmake
- +51 −0 configure
- +28 −0 configure.in
- +1 −0 include/SDL_config.h.cmake
- +1 −0 include/SDL_config.h.in
- +3 −0 src/video/SDL_sysvideo.h
- +3 −0 src/video/SDL_video.c
- +45 −0 src/video/mx6/SDL_mx6events.c
- +31 −0 src/video/mx6/SDL_mx6events_c.h
- +211 −0 src/video/mx6/SDL_mx6opengles.c
- +68 −0 src/video/mx6/SDL_mx6opengles.h
- +301 −0 src/video/mx6/SDL_mx6video.c
- +78 −0 src/video/mx6/SDL_mx6video.h
@@ -0,0 +1,45 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
arising from the use of this software. | ||
Permission is granted to anyone to use this software for any purpose, | ||
including commercial applications, and to alter it and redistribute it | ||
freely, subject to the following restrictions: | ||
1. The origin of this software must not be misrepresented; you must not | ||
claim that you wrote the original software. If you use this software | ||
in a product, an acknowledgment in the product documentation would be | ||
appreciated but is not required. | ||
2. Altered source versions must be plainly marked as such, and must not be | ||
misrepresented as being the original software. | ||
3. This notice may not be removed or altered from any source distribution. | ||
*/ | ||
|
||
#include "../../SDL_internal.h" | ||
|
||
#if SDL_VIDEO_DRIVER_MX6 | ||
|
||
#include "../../events/SDL_sysevents.h" | ||
#include "../../events/SDL_events_c.h" | ||
#include "../../events/SDL_keyboard_c.h" | ||
#include "SDL_mx6video.h" | ||
#include "SDL_mx6events_c.h" | ||
|
||
#ifdef SDL_INPUT_LINUXEV | ||
#include "../../core/linux/SDL_evdev.h" | ||
#endif | ||
|
||
void MX6_PumpEvents(_THIS) | ||
{ | ||
#ifdef SDL_INPUT_LINUXEV | ||
SDL_EVDEV_Poll(); | ||
#endif | ||
|
||
} | ||
|
||
#endif /* SDL_VIDEO_DRIVER_MX6 */ | ||
|
@@ -0,0 +1,31 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
arising from the use of this software. | ||
Permission is granted to anyone to use this software for any purpose, | ||
including commercial applications, and to alter it and redistribute it | ||
freely, subject to the following restrictions: | ||
1. The origin of this software must not be misrepresented; you must not | ||
claim that you wrote the original software. If you use this software | ||
in a product, an acknowledgment in the product documentation would be | ||
appreciated but is not required. | ||
2. Altered source versions must be plainly marked as such, and must not be | ||
misrepresented as being the original software. | ||
3. This notice may not be removed or altered from any source distribution. | ||
*/ | ||
|
||
#ifndef _SDL_mx6events_c_h | ||
#define _SDL_mx6events_c_h | ||
|
||
#include "SDL_mx6video.h" | ||
|
||
void MX6_PumpEvents(_THIS); | ||
void MX6_EventInit(_THIS); | ||
void MX6_EventQuit(_THIS); | ||
|
||
#endif /* _SDL_mx6events_c_h */ |
Oops, something went wrong.