plan9fox/sys
cinap_lenrek 9a55346264 devmouse: various bugfixes, simplify
the assumption of only one producer ((abs)moustratrack()) is not true
for external mouse events from /dev/mousein, so protect the mouse state
and queue with ilock().

get rid of mousecreate(), just use devcreate().

reset cursor when all instances of /dev/mouse and /dev/cursor got closed,
instead of also considering /dev/mousectl. the reason is that kbdfs keeps
the mousectl file open. so exiting a program that has the cursor changed
will properly reset the cursor to arrow.

don't access user buffer while holding cursor spinlock! the memory access
can fault. theres also no lock needed there, we'r just copying *from* the
cursor memory.

fix use of strtol(), p will always be set, check for end of string.

keep pointer coordinates onscreen (off by one).

make lastms() function to get the last millisecond delta of last
call for resynchronization.

fix msg[3] buffer overflow in m5mouseputc().

get rid of mouseshifted logic, it is not used.
2016-11-29 21:11:48 +01:00
..
doc
games/lib fortunes: does that me a dipshit 2016-10-16 14:16:17 -04:00
include ape/libsec: add secp384r1 curve parameters for tls 2016-10-30 20:32:03 +01:00
lib kernel/qio: get rid of unused qcopycnt debug variable 2016-11-12 16:05:00 +01:00
man srv(4): add SOURCE for srvtls 2016-11-08 02:10:47 +01:00
src devmouse: various bugfixes, simplify 2016-11-29 21:11:48 +01:00