Merge pull request #327 from peppy/general-fixes

General fixes.
This commit is contained in:
Thomas Müller 2017-02-07 14:52:11 +01:00 committed by GitHub
commit 267473c052
2 changed files with 8 additions and 4 deletions

View File

@ -133,16 +133,16 @@ namespace osu.Game.Online.API
var userReq = new GetUserRequest();
userReq.Success += (u) => {
LocalUser.Value = u;
//we're connected!
State = APIState.Online;
failureCount = 0;
};
if (!handleRequest(userReq))
{
State = APIState.Failing;
continue;
}
//we're connected!
State = APIState.Online;
failureCount = 0;
break;
}

View File

@ -159,8 +159,12 @@ namespace osu.Game.Overlays
}
}
protected override bool OnHover(InputState state) => true;
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
protected override bool OnClick(InputState state) => true;
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
switch (args.Key)