mirror of
https://github.com/jorio/Pomme.git
synced 2025-02-21 03:29:05 +00:00
Move {Init,Hide,Show}Cursor to SDLInput.cpp
This commit is contained in:
parent
91f6390055
commit
630e8e9b24
@ -190,10 +190,30 @@ void GetMouse(Point* mouseLoc)
|
|||||||
|
|
||||||
Boolean Button(void)
|
Boolean Button(void)
|
||||||
{
|
{
|
||||||
ONCE(TODOMINOR());
|
return SDL_GetMouseState(NULL, NULL) & SDL_BUTTON_LMASK;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Mouse cursor
|
||||||
|
|
||||||
|
void InitCursor()
|
||||||
|
{
|
||||||
|
SDL_ShowCursor(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HideCursor()
|
||||||
|
{
|
||||||
|
SDL_ShowCursor(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ShowCursor()
|
||||||
|
{
|
||||||
|
SDL_ShowCursor(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Init
|
||||||
|
|
||||||
void Pomme::Input::Init()
|
void Pomme::Input::Init()
|
||||||
{
|
{
|
||||||
InitScancodeLookupTable();
|
InitScancodeLookupTable();
|
||||||
|
@ -8,8 +8,6 @@
|
|||||||
#include "PommeSound.h"
|
#include "PommeSound.h"
|
||||||
#include "PommeInput.h"
|
#include "PommeInput.h"
|
||||||
|
|
||||||
#include "SDL.h"
|
|
||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
#include "Platform/Windows/PommeWindows.h"
|
#include "Platform/Windows/PommeWindows.h"
|
||||||
#endif
|
#endif
|
||||||
@ -44,24 +42,6 @@ void FlushEvents(short, short)
|
|||||||
TODOMINOR();
|
TODOMINOR();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// Mouse cursor
|
|
||||||
|
|
||||||
void InitCursor()
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
void HideCursor()
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ShowCursor()
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Our own init
|
// Our own init
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user