mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
moving around some event handler code
creating inputcommon git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1766 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -56,7 +56,7 @@
|
||||
#include "MemTools.h"
|
||||
#include "Host.h"
|
||||
#include "LogManager.h"
|
||||
#include "EventHandler.h"
|
||||
#include "InputCommon.h"
|
||||
|
||||
#include "State.h"
|
||||
|
||||
@ -68,7 +68,6 @@
|
||||
// glXMakeCurrent/ wglMakeCurrent takes a context and makes it current on the current thread.
|
||||
// So it's fine to init ogl on one thread, and then make it current and start blasting on another.
|
||||
|
||||
EventHandler *eventHandler = NULL;;
|
||||
|
||||
namespace Core
|
||||
{
|
||||
@ -124,11 +123,8 @@ bool Init(const SCoreStartupParameter _CoreParameter)
|
||||
|
||||
g_CoreStartupParameter = _CoreParameter;
|
||||
|
||||
#if defined GLTEST && GLTEST
|
||||
// init the event handler
|
||||
eventHandler = new EventHandler();
|
||||
#endif
|
||||
|
||||
InputCommon::Init();
|
||||
|
||||
// start the thread again
|
||||
_dbg_assert_(HLE, g_pThread == NULL);
|
||||
|
||||
@ -285,9 +281,9 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
PluginVideo::Video_Initialize(&VideoInitialize);
|
||||
|
||||
// Under linux, this is an X11 Display, not an HWND!
|
||||
g_pWindowHandle = (HWND)VideoInitialize.pWindowHandle;
|
||||
Callback_PeekMessages = VideoInitialize.pPeekMessages;
|
||||
g_pUpdateFPSDisplay = VideoInitialize.pUpdateFPSDisplay;
|
||||
g_pWindowHandle = (HWND)VideoInitialize.pWindowHandle;
|
||||
Callback_PeekMessages = VideoInitialize.pPeekMessages;
|
||||
g_pUpdateFPSDisplay = VideoInitialize.pUpdateFPSDisplay;
|
||||
|
||||
// Load and init DSPPlugin
|
||||
DSPInitialize dspInit;
|
||||
@ -401,9 +397,7 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
PluginVideo::Video_Shutdown();
|
||||
PluginVideo::UnloadPlugin();
|
||||
|
||||
if (eventHandler)
|
||||
delete eventHandler;
|
||||
|
||||
InputCommon::Shutdown();
|
||||
HW::Shutdown();
|
||||
|
||||
LOG(MASTER_LOG, "EmuThread exited");
|
||||
|
@ -15,7 +15,6 @@ files = ["Console.cpp",
|
||||
"State.cpp",
|
||||
"Tracer.cpp",
|
||||
"VolumeHandler.cpp",
|
||||
"EventHandler.cpp",
|
||||
"Boot/Boot.cpp",
|
||||
"Boot/Boot_BIOSEmu.cpp",
|
||||
"Boot/Boot_DOL.cpp",
|
||||
@ -120,9 +119,10 @@ else:
|
||||
]
|
||||
|
||||
libs = [
|
||||
'bdisasm'
|
||||
'bdisasm',
|
||||
'inputcommon',
|
||||
]
|
||||
|
||||
env_core = env.Clone();
|
||||
env_core.Append(CXXFLAGS = [ '-fPIC' ])
|
||||
env_core.StaticLibrary("core", files, LIBS=libs)
|
||||
env_core.StaticLibrary('core', files, LIBS=libs)
|
||||
|
@ -12,7 +12,8 @@ files = [
|
||||
]
|
||||
|
||||
libs = [
|
||||
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
||||
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
|
||||
'common', 'z'
|
||||
]
|
||||
|
||||
if wxenv['HAVE_WX']:
|
||||
|
@ -46,6 +46,4 @@ public:
|
||||
static void SFKeyToString(sf::Key::Code keycode, char *keyStr);
|
||||
};
|
||||
|
||||
extern EventHandler *eventHandler;
|
||||
|
||||
#endif
|
12
Source/Core/InputCommon/Src/SConscript
Normal file
12
Source/Core/InputCommon/Src/SConscript
Normal file
@ -0,0 +1,12 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
|
||||
files = [
|
||||
'EventHandler.cpp',
|
||||
'InputCommon.cpp',
|
||||
]
|
||||
|
||||
env_inputcommon = env.Clone()
|
||||
env_inputcommon.Append(CXXFLAGS = [ '-fPIC' ])
|
||||
env_inputcommon.StaticLibrary("inputcommon", files)
|
Reference in New Issue
Block a user