mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3365
This commit is contained in:
parent
9cc219bead
commit
8618f3426d
|
@ -12154,3 +12154,9 @@ David May 10 2004
|
||||||
lib/
|
lib/
|
||||||
exception.h
|
exception.h
|
||||||
util.C
|
util.C
|
||||||
|
|
||||||
|
David May 10 2004
|
||||||
|
- added support for key up/down handling by apps
|
||||||
|
|
||||||
|
api/
|
||||||
|
windows_opengl.cpp
|
||||||
|
|
|
@ -66,6 +66,31 @@ to get the new preferences.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
<h3>Handling input</h3>
|
||||||
|
<p>
|
||||||
|
The application must supply the following input-handling functions:
|
||||||
|
<pre>
|
||||||
|
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
|
||||||
|
)
|
||||||
|
</pre>
|
||||||
<h3>Limiting frame rate</h3>
|
<h3>Limiting frame rate</h3>
|
||||||
<p>
|
<p>
|
||||||
The following global variables control frame rate:
|
The following global variables control frame rate:
|
||||||
|
|
Loading…
Reference in New Issue