mirror of
https://github.com/Theaninova/BeatLanguageMapper.git
synced 2026-01-19 08:22:56 +00:00
Initial Commit!
いきますよ!
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
By Rama
|
||||
*/
|
||||
#include "VictoryBPLibraryPrivatePCH.h"
|
||||
#include "VictoryBPHTML.h"
|
||||
|
||||
#if PLATFORM_HTML5
|
||||
#include "SDL_opengl.h"
|
||||
|
||||
DEFINE_LOG_CATEGORY_STATIC(VictoryPluginHTML, Log, All);
|
||||
|
||||
#include "emscripten.h"
|
||||
#include "html5.h"
|
||||
#endif
|
||||
|
||||
bool UVictoryBPHTML::IsHTML()
|
||||
{
|
||||
#if PLATFORM_HTML5
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif //HTML
|
||||
}
|
||||
|
||||
void UVictoryBPHTML::VictoryHTML5_SetCursorVisible(bool MakeVisible)
|
||||
{
|
||||
if(MakeVisible)
|
||||
{
|
||||
#if PLATFORM_HTML5
|
||||
{
|
||||
emscripten_exit_pointerlock();
|
||||
UE_LOG(VictoryPluginHTML, Warning, TEXT("Exiting Pointer Lock"));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#if PLATFORM_HTML5
|
||||
{
|
||||
emscripten_request_pointerlock ( "#canvas" , true);
|
||||
UE_LOG(VictoryPluginHTML, Warning, TEXT("Entering Pointer Lock"));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user