diff options
author | Jess VanDerwalker <washu@sonic.net> | 2012-04-04 15:23:57 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-05 11:47:46 -0700 |
commit | 0f1ccd10cd8e999b5d630296afccbf5d921e8306 (patch) | |
tree | 1faee6368ab41ac8894232afb60ef22f831291f2 /include | |
parent | bc97999157de7e7275f8265b1f4bb0707318ca6c (diff) |
Namespaced input functions and removed window parameter.
Input functions are not prefixed with xcwm_input_*. Also removed the Mac window ID that was being passed into input functions for debugging purposes.
Signed-off-by: Jess VanDerwalker <washu@sonic.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/xcwm/xtoq.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/include/xcwm/xtoq.h b/include/xcwm/xtoq.h index ce37575..aa063b3 100644 --- a/include/xcwm/xtoq.h +++ b/include/xcwm/xtoq.h @@ -166,16 +166,15 @@ xcwm_close(void); * @param keyCode The key pressed. */ void -xcwm_key_press (xcwm_context_t *context, int window, uint8_t code); +xcwm_input_key_press (xcwm_context_t *context, uint8_t code); /** * function * @param context xcwm_context_t - * @param window The window that the key press was made in. * @param keyCode The key released. */ void -xcwm_key_release (xcwm_context_t *context, int window, uint8_t code); +xcwm_input_key_release (xcwm_context_t *context, uint8_t code); /** * Uses the XTEST protocol to send input events to the X Server (The X Server @@ -185,10 +184,9 @@ xcwm_key_release (xcwm_context_t *context, int window, uint8_t code); * @param context xcwm_context_t * @param x - x coordinate * @param y - y coordinate - * @param window The window that the key press was made in. */ void -xcwm_button_press (xcwm_context_t *context, long x, long y, int window, int button); +xcwm_input_button_press (xcwm_context_t *context, long x, long y, int button); /** * Uses the XTEST protocol to send input events to the X Server (The X Server @@ -198,20 +196,19 @@ xcwm_button_press (xcwm_context_t *context, long x, long y, int window, int butt * @param context xcwm_context_t * @param x - x coordinate * @param y - y coordinate - * @param window The window that the key release was made in. + * @param button The id of the button pressed. */ void -xcwm_button_release (xcwm_context_t *context, long x, long y, int window, int button); +xcwm_input_button_release (xcwm_context_t *context, long x, long y, int button); /** * function * @param context xcwm_context_t * @param x - x coordinate * @param y - y coordinate - * @param window The window that the key release was made in. */ void -xcwm_mouse_motion (xcwm_context_t *context, long x, long y, int window, int button); +xcwm_input_mouse_motion (xcwm_context_t *context, long x, long y, int button); /**************** * window.c |