Re: [FreeDOS-32-dev] FD32 Win32 Support's Slow Progress
Status: Pre-Alpha
Brought to you by:
salvois
From: Salvo I. <sa...@us...> - 2004-04-19 10:19:47
|
Hi Luca, > > I already have a working serial mouse driver somewhere in my hard disk. > > Just tell me. > Good. If you feel that it is ready for inclusion, commit it, or send it > to the list. Ok, I'll search for it and let you know. BTW, it only works with two buttons serial mice, but it should be easy to upgrade it to three button mice and mouse wheel. Maybe a bit harder for PS/2, not sure about that. It is very low level: it returns delta values by now, that should be converted to absolute pointer coordinates, including acceleration (usually 2x) above a certain delta threshold. > > If I'm not wrong, 18.2 Hz is the lower limit (max counter). > Ah, ok. Thanks. I'll commit some code that checks this limit. Checked. The PIT runs at 1234DDh MHz, and its counter is 16-bit wide. Thus the lower programmable frequency is 1234DDh / 10000h = 18.2 Hz. You have to set both counter's MSB and LSB to zero in order to set 10000h, because the PIT fires an interrupt when the counter reaches zero again. BTW, this is the default PIT frequency (channel 0), as programmed by the BIOS to update the system clock. (From Mark Feldman's PC-GPE) Bye, Salvo |