diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
commit | e7d3e20912baa82965108997013710223152772c (patch) | |
tree | 02d4ed8e367319884582025cb1da2f4c45a05190 /sys/src/9/port/devmouse.c | |
parent | 9adf75a7091c7bd2afefbeba62a2525d50df4404 (diff) |
remove keyboard stuff from other ports, make openssl and python compile on arm
Diffstat (limited to 'sys/src/9/port/devmouse.c')
-rw-r--r-- | sys/src/9/port/devmouse.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/src/9/port/devmouse.c b/sys/src/9/port/devmouse.c index 24c66ec45..028d8e2b2 100644 --- a/sys/src/9/port/devmouse.c +++ b/sys/src/9/port/devmouse.c @@ -72,15 +72,12 @@ static Cmdtab mousectlmsg[] = Mouseinfo mouse; Cursorinfo cursor; int mouseshifted; -int kbdbuttons; -void (*kbdmouse)(int); Cursor curs; void Cursortocursor(Cursor*); int mousechanged(void*); static void mouseclock(void); -static void xkbdmouse(int); enum{ Qdir, @@ -120,13 +117,6 @@ mousereset(void) addclock0link(mouseclock, 33); } -static void -mousefromkbd(int buttons) -{ - kbdbuttons = buttons; - mousetrack(0, 0, 0, TK2MS(MACHP(0)->ticks)); -} - static int mousedevgen(Chan *c, char *name, Dirtab *tab, int ntab, int i, Dir *dp) { @@ -147,7 +137,6 @@ mouseinit(void) curs = arrow; Cursortocursor(&arrow); cursoron(1); - kbdmouse = mousefromkbd; mousetime = seconds(); } @@ -603,7 +592,7 @@ mousetrack(int dx, int dy, int b, int msec) lastb = mouse.buttons; mouse.xy = Pt(x, y); - mouse.buttons = b|kbdbuttons; + mouse.buttons = b; mouse.redraw = 1; mouse.counter++; mouse.msec = msec; @@ -642,7 +631,7 @@ absmousetrack(int x, int y, int b, int msec) lastb = mouse.buttons; mouse.xy = Pt(x, y); - mouse.buttons = b|kbdbuttons; + mouse.buttons = b; mouse.redraw = 1; mouse.counter++; mouse.msec = msec; |