This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Keyboard and mouse drivers for eCos


On Tue, 2003-07-15 at 07:25, Chris Garry wrote:
> I've been working on a VNC server for eCos, and need to add keyboard
> and mouse drivers.  Is there a standard API for these drivers in eCos?
> 
> For example:
> I can open my mouse device with something like:
> 
>     int mouse_fd;
>     mouse_fd = open("/dev/vnc_mouse", O_RDONLY | O_NONBLOCK);
> 
> but what form should the data from the read operation take:
> 
>     int bytes_read;
>     char data[8];
>     bytes_read = read(mouse_fd, data, 8);
> 
> If there isn't a standard, does anybody have any ideas for a suitable format?
> 
> Having a standard interface to these 2 drivers should also simplify hooking
> them into the microwindows code.

We don't have a standard, per se, but I'd suggest that you look
at the microwindows interfaces that have been used for guidance.
So far, microwindows has run on the iPAQ and AAED2000 and there
are "mouse" (pointer/touchscreen) interfaces defined for them.

-- 
Gary D. Thomas <gary.thomas@mind.be>


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]