Added ShowMouse and get global position to .net api, deferred onInit after all entities have been initialized
This commit is contained in:
@@ -6,6 +6,18 @@
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
void ShowMouse(bool visible)
|
||||
{
|
||||
if (visible)
|
||||
{
|
||||
Input::ShowMouse();
|
||||
}
|
||||
else
|
||||
{
|
||||
Input::HideMouse();
|
||||
}
|
||||
}
|
||||
|
||||
bool IsKeyDown(int keyCode)
|
||||
{
|
||||
return Input::IsKeyDown(keyCode);
|
||||
@@ -25,6 +37,7 @@ namespace Nuake {
|
||||
|
||||
void InputNetAPI::RegisterMethods()
|
||||
{
|
||||
RegisterMethod("Input.ShowMouseIcall", &ShowMouse);
|
||||
RegisterMethod("Input.IsKeyDownIcall", &IsKeyDown);
|
||||
RegisterMethod("Input.IsKeyPressedIcall", &IsKeyPressed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user