handle keyboard input

This commit is contained in:
Dana Jansens 2002-12-04 08:47:57 +00:00
parent 73f7a0bd69
commit a21c0c55ca
2 changed files with 10 additions and 16 deletions

View file

@ -104,6 +104,14 @@ void OBActions::leaveHandler(const XCrossingEvent &e)
}
void OBActions::keyPressHandler(const XKeyEvent &e)
{
// XXX: run the KEY guile hook
printf("GUILE: KEY: win %lx modifiers %u keycode %u\n",
(long)e.window, e.state, e.keycode);
}
void OBActions::drag(Window win, otk::Point delta, unsigned int modifiers,
unsigned int button, Time time)
{
@ -113,12 +121,4 @@ void OBActions::drag(Window win, otk::Point delta, unsigned int modifiers,
}
void OBActions::key(Window win, unsigned int modifiers, unsigned int keycode)
{
(void)win;(void)modifiers;(void)keycode;
// XXX: some guile shit...
}
}

View file

@ -48,6 +48,8 @@ public:
virtual void enterHandler(const XCrossingEvent &e);
virtual void leaveHandler(const XCrossingEvent &e);
virtual void keyPressHandler(const XKeyEvent &e);
//! Notify that a mouse drag is taking place.
/*!
@param win The window the drag is on
@ -56,14 +58,6 @@ public:
*/
void drag(Window win, otk::Point delta, unsigned int modifiers,
unsigned int button, Time time);
//! Notify that a key press has occured on a window.
/*!
@param win The window the key press was on
@param modifiers The modifier state for the action.
@param keycode The keycode of the key pressed.
*/
void key(Window win, unsigned int modifiers, unsigned int keycode);
};
}