diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-08-10 14:00:14 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-08-10 14:00:14 +0300 |
commit | 539d1f33475484d35fb5a377efc76dba2d868e3f (patch) | |
tree | 2e44651f28b62932a5f5ded46106ce219ebbbcf4 /include | |
parent | 5506b4ad200745236f997c121e8200179c47b749 (diff) |
GKVE/GPE: have DDX allocate events
Don't allocate events on every GKE/GKVE/GPE call, just have the DDX manage
it instead. Introduce GetMaximumEventsNum(), which is the maximum number
of events these functions will ever produce.
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/input.h b/include/input.h index d1791e7e7..6572db5a3 100644 --- a/include/input.h +++ b/include/input.h @@ -377,8 +377,10 @@ extern void InitInput( int /*argc*/, char ** /*argv*/); +extern int GetMaximumEventsNum(void); + extern int GetPointerEvents( - xEvent **xE, + xEvent *events, DeviceIntPtr pDev, int type, int buttons, @@ -387,13 +389,13 @@ extern int GetPointerEvents( int *valuators); extern int GetKeyboardEvents( - xEvent **xE, + xEvent *events, DeviceIntPtr pDev, int type, int key_code); extern int GetKeyboardValuatorEvents( - xEvent **xE, + xEvent *events, DeviceIntPtr pDev, int type, int key_code, |