diff --git a/checkin_notes b/checkin_notes index ac137035fe..33b9399fc0 100755 --- a/checkin_notes +++ b/checkin_notes @@ -12154,3 +12154,9 @@ David May 10 2004 lib/ exception.h util.C + +David May 10 2004 + - added support for key up/down handling by apps + + api/ + windows_opengl.cpp diff --git a/doc/graphics.php b/doc/graphics.php index f4d7df823d..ee6f539c94 100644 --- a/doc/graphics.php +++ b/doc/graphics.php @@ -66,6 +66,31 @@ to get the new preferences.
+
+The application must supply the following input-handling functions: +
+void boinc_app_mouse_move( + int x, int y, // new coords of cursor + bool left, // whether left mouse button is down + bool middle, + bool right +); + +void boinc_app_mouse_button( + int x, int y, // coords of cursor + int which, // which button (0/1/2) + bool is_down // true iff button is now down +); + +void boinc_app_key_press( + int, int // system-specific key encodings +) + +void boinc_app_key_release( + int, int // system-specific key encodings +) +
The following global variables control frame rate: