I have found the keyboard input driver completley
unacceptable due to the way it hooks ALL keyboard
input.
There is a reason stdin is used as apposed to full
keyboard access, this is incredibly apparent when the
application crashes and the only thing you can do to
rectify this is ssh into the box.
This method of input also allows various attacks by
allowing the application to appear exactly as if it
had closed, when infact it has not - all input and
output to/from the machine is still under the control
of that application.
The application I am using needs a stream of
characters - stdin is just that, however as it is
using the DirectFB keyboard interface, things suddenly
stop being simple.
Is it possible somebody could either write such an
input driver or at least provide me with an outline of
the functions that it would consist of...
oh, on another note:
keyboard.c:
/* fill driver info structure */
snprintf( info->name,
DFB_INPUT_DRIVER_INFO_NAME_LENGTH,
"Keyboard Driver" );
That is functionally equivilent to strncpy, only it
will be considerabley slower due to it having to
compare each character with '%'.
// fill driver info structure
strncpy( info->name, "Keyboard Driver",
DFB_INPUT_DRIVER_INFO_NAME_LENGTH );
- a vexed DirectFB user
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev