As Haiku BScreen::Frame() doesn't work in our current state, we use a fake Frame
input_server now sends well filled BMessages in Haiku git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12350 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -246,6 +246,8 @@ InputServer::InitKeyboardMouseStates(void)
|
|||||||
// fMousePos is then set to the center of the screen.
|
// fMousePos is then set to the center of the screen.
|
||||||
|
|
||||||
fFrame = fScreen.Frame();
|
fFrame = fScreen.Frame();
|
||||||
|
if (fFrame == BRect(0,0,0,0))
|
||||||
|
fFrame = BRect(0,0,800,600);
|
||||||
fMousePos = BPoint(fFrame.right/2, fFrame.bottom/2);
|
fMousePos = BPoint(fFrame.right/2, fFrame.bottom/2);
|
||||||
|
|
||||||
if (LoadKeymap()!=B_OK)
|
if (LoadKeymap()!=B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user