|
|
@ -1021,6 +1021,7 @@ namespace olc |
|
|
|
// Called when a console command is executed
|
|
|
|
// Called when a console command is executed
|
|
|
|
virtual bool OnConsoleCommand(const std::string& sCommand); |
|
|
|
virtual bool OnConsoleCommand(const std::string& sCommand); |
|
|
|
virtual void OnRequestCompleted(const std::string_view receivedData)const; |
|
|
|
virtual void OnRequestCompleted(const std::string_view receivedData)const; |
|
|
|
|
|
|
|
virtual void OnWindowLoseFocus()const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual olc::rcode SendRequest(std::string_view url,std::string_view data); |
|
|
|
virtual olc::rcode SendRequest(std::string_view url,std::string_view data); |
|
|
@ -4619,6 +4620,7 @@ namespace olc |
|
|
|
bool PixelGameEngine::OnConsoleCommand(const std::string& sCommand) { UNUSED(sCommand); return false; } |
|
|
|
bool PixelGameEngine::OnConsoleCommand(const std::string& sCommand) { UNUSED(sCommand); return false; } |
|
|
|
|
|
|
|
|
|
|
|
void PixelGameEngine::OnRequestCompleted(const std::string_view receivedData)const{} |
|
|
|
void PixelGameEngine::OnRequestCompleted(const std::string_view receivedData)const{} |
|
|
|
|
|
|
|
void PixelGameEngine::OnWindowLoseFocus()const{} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
olc::rcode PixelGameEngine::SendRequest(std::string_view url,std::string_view data){platform->SendRequest(url,data);return olc::rcode::OK;}; |
|
|
|
olc::rcode PixelGameEngine::SendRequest(std::string_view url,std::string_view data){platform->SendRequest(url,data);return olc::rcode::OK;}; |
|
|
@ -4698,6 +4700,7 @@ namespace olc |
|
|
|
olc_UpdateKeyState(i,false); |
|
|
|
olc_UpdateKeyState(i,false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(!state)OnWindowLoseFocus(); |
|
|
|
bHasInputFocus = state;
|
|
|
|
bHasInputFocus = state;
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|