Linux compile fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2246 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox 2009-02-15 05:43:48 +00:00
parent cf068ebb06
commit 71d9832004
2 changed files with 10 additions and 1 deletions

View File

@ -30,5 +30,4 @@ files = [
env_common = env.Clone()
env_common.Append(CXXFLAGS = [ '-fPIC' ])
env_common.Append(CXXFLAGS = [ '-mssse3' ]) # For TextureDecoder
env_common.StaticLibrary("videocommon", files)

View File

@ -170,6 +170,7 @@ bool RecordingPlayIR(IRReportType &_IR)
// Return true if this particual numerical key is pressed
bool IsNumericalKeyPressed(int _Key)
{
#ifdef _WIN32
// Check which key it is
std::string TmpKey = StringFromFormat("%i", _Key);
if(GetAsyncKeyState(TmpKey[0]))
@ -177,11 +178,16 @@ bool IsNumericalKeyPressed(int _Key)
else
// That numerical key is pressed
return false;
#else
// TODO linux port
return false;
#endif
}
// Check if a switch is pressed
bool IsSwitchPressed(int _Key)
{
#ifdef _WIN32
// Check if that switch is pressed
switch (_Key)
{
@ -192,6 +198,10 @@ bool IsSwitchPressed(int _Key)
// That switch was not pressed
return false;
#else
// TODO linux port
return false;
#endif
}
// Check if we should start the playback of a recording. Once it has been started it can currently