{"action":"created","issue":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/1411","repository_url":"https://api.github.com/repos/urho3d/Urho3D","labels_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1411/comments","events_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1411/events","html_url":"https://github.com/urho3d/Urho3D/issues/1411","id":159268061,"number":1411,"title":"Mouse visibility issue","user":{"login":"giovannispina","id":6839120,"avatar_url":"https://avatars.githubusercontent.com/u/6839120?v=3","gravatar_id":"","url":"https://api.github.com/users/giovannispina","html_url":"https://github.com/giovannispina","followers_url":"https://api.github.com/users/giovannispina/followers","following_url":"https://api.github.com/users/giovannispina/following{/other_user}","gists_url":"https://api.github.com/users/giovannispina/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannispina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannispina/subscriptions","organizations_url":"https://api.github.com/users/giovannispina/orgs","repos_url":"https://api.github.com/users/giovannispina/repos","events_url":"https://api.github.com/users/giovannispina/events{/privacy}","received_events_url":"https://api.github.com/users/giovannispina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-08T20:51:20Z","updated_at":"2016-06-09T07:10:20Z","closed_at":null,"body":"I was trying to hide the default mouse cursor in order to use a custom one but I've just noticed that MouseVisible flag remains true.\r\n\r\n```cpp\r\nInput* input = GetSubsystem<Input>();\r\ninput->SetMouseVisible(true);\r\ninput->SetMouseVisible(false);\r\nbool val = input->IsMouseVisible(); // val = true\r\n```\r\n\r\nThe problem is here (InputFocus is not true):\r\nhttps://github.com/urho3d/Urho3D/blob/f6a01c11af1c149af2c96d586e86ceac662a1332/Source/Urho3D/Input/Input.cpp#L553"},"comment":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/comments/224817222","html_url":"https://github.com/urho3d/Urho3D/issues/1411#issuecomment-224817222","issue_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1411","id":224817222,"user":{"login":"cadaver","id":51361,"avatar_url":"https://avatars.githubusercontent.com/u/51361?v=3","gravatar_id":"","url":"https://api.github.com/users/cadaver","html_url":"https://github.com/cadaver","followers_url":"https://api.github.com/users/cadaver/followers","following_url":"https://api.github.com/users/cadaver/following{/other_user}","gists_url":"https://api.github.com/users/cadaver/gists{/gist_id}","starred_url":"https://api.github.com/users/cadaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadaver/subscriptions","organizations_url":"https://api.github.com/users/cadaver/orgs","repos_url":"https://api.github.com/users/cadaver/repos","events_url":"https://api.github.com/users/cadaver/events{/privacy}","received_events_url":"https://api.github.com/users/cadaver/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T07:10:20Z","updated_at":"2016-06-09T07:10:20Z","body":"What OS are you on? Do the Urho example programs (for example NinjaSnowWar) hide the mouse cursor correctly?\r\n\r\nThe cursor is a global resource so when your application is defocused it is expected that you cannot hide the mouse cursor (ie. otherwise you'd be messing with another application's operation)\r\n"}}
{"actor":{"display_login":"cadaver"}}