Patch by Wim van der Meer: Implemented global Interface Kit function to retrieve

the current mouse position and pressed buttons. I've changed the return code
to status_t and added anal error checking, most of the rest of the file is not
doing it, though... :-) Thanks, Wim!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-05-14 15:53:09 +00:00
parent 4339f8be19
commit 1c73ffa102
5 changed files with 62 additions and 2 deletions
+3
View File
@@ -10,6 +10,7 @@
#include <OS.h>
class BRect;
class BPoint;
// some handy UTF-8 characters
@@ -380,6 +381,8 @@ mode_mouse mouse_mode();
void set_focus_follows_mouse_mode(mode_focus_follows_mouse mode);
mode_focus_follows_mouse focus_follows_mouse_mode();
status_t get_mouse(BPoint* screenWhere, uint32* buttons);
void set_accept_first_click(bool acceptFirstClick);
bool accept_first_click();