summaryrefslogtreecommitdiffstats
path: root/usr.sbin/moused/moused.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve Logitech MouseMan+ protocol support.yokota1999-07-121-7/+40
|
* Fix PS/2 MouseMan+ protocol. We have been looking at a wrong placeyokota1999-06-031-2/+2
| | | | for the sign bit for roller movement!
* USB is only on PC's at the minute, don't try and use the MOUSE_IF_USBgpalmer1999-03-011-1/+3
| | | | define on the AXP, 'cos it breaks.
* Print "usb" for MOUSE_IF_USB, rather than "unknown".yokota1999-02-281-1/+2
|
* Cleanup usage string: -i takes an argument.steve1998-12-131-2/+2
| | | | | PR: 8315 Submitted by: Amakawa Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
* - Added support for Genius Kidspad tablet.yokota1998-11-201-2/+104
| | | | | | | | # `moused' is getting too over-loaded now. If we want something # more than simple mouse emulation for tablets or remote devices, # we should start writing a separate daemon... Submitted by: luigi
* - Added a new option: -w N. The option makes the button N as the `wheelyokota1998-11-201-4/+21
| | | | | | | | | mode' button. Mouse movement will be treated as wheel movement while this button is held down. Useful for mice with many buttons but without a wheel. PR: bin/8001 Submitted by: Hideyuki Suzuki
* - Reorganized a `if-else' close a bit for clarity. Purely cosmeticyokota1998-11-201-21/+22
| | | | change. No functional difference.
* Fix PnP mouse detection routine so that:yokota1998-10-121-36/+113
| | | | | | | | | | | - it has longer timeout as per the PnP COM Device Specificaiton 1.0, - and it tries to obtain the PnP ID string by strictly following the specification and if it fails, by deploying slightly simplified steps. (moused has used the simplified method because early PnP mice do not exactly follow the specification. But now, recent mice do not supply the ID string unless the strict procedure is used...) Jointly developed by luigi and yokota.
* Reviewed by: Amancioahasty1998-06-141-1/+120
| | | | | | | | | | | | | | | | | | Submitted by: Randall Hopper <rhh@ct.picker.com> The patch supports using the X10 Mouse Remote in both stand-alone and pass-through configurations, so you can plug your mouse and remote into the same serial port, use the mouse for X, and use the remote for other apps like Fxtv. For instance, we can now control fxtv via the remote control just like a TV : change channels, mute, increase volume, zoom video, freeze frame 8) The mouse events are channeled through the syscons/sysmouse I/F like normal, and the remote buttons are "syphoned off" to a UNIX-domain stream socket (defined as _PATH_MOUSEREMOTE in <machine/mouse.h>) for a remote-aware app to grab and use. For further info on the X10 Mouse Remote see: http://www.x10.com/products/x10_mk19a.htm
* - Describe the -I option in the man page.yokota1998-03-121-2/+2
| | | | - Add the -I option in the usage line.
* Add -I flag.jkh1998-03-071-2/+13
| | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Add 4th button support for the "MouseMan" protocol. The latestyokota1998-03-061-4/+5
| | | | trackball model from Logitech has four buttons.
* Add Genius PnP Mouse (simple one)ache1998-02-041-3/+5
|
* Add the PnP string for a Logitech serial mouse model.yokota1998-01-201-1/+3
|
* - Added support for a new MouseMan model (4 buttons, no wheel).yokota1997-12-231-2/+12
| | | | | | | | | | | | | Based on the report from Dave Bodenstab. - Turn off PnP COM device enumeration procedure if the user explicitly specifies a protocol type with the "-t" option. - Accept "-t auto". Now the user may entirely omit the "-t" option in the command line, or specify "-t auto" in order to make moused detect an appropriate protocol type automatically. In the previous version, moused did so only if the "-t" option is absent in the command line. ("-t auto" won't disable PnP COM device enumeration.) - Updated the man page.
* Oops, I forgot to set `cflag' in some cases when initializing theyokota1997-12-151-3/+7
| | | | mouse port.
* The `moused' daemon is made to support various serial mouseyokota1997-12-071-281/+1649
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | protocols to recognized extra buttons and wheel/roller. It now has PnP COM device support code, thus, some recent mouse products are automatically detected and an appropriate protocol is selected. The `-i' option will print the result of auto-detection. - Added support for the following SERIAL mice: ALPS GlidePoint, MS IntelliMouse, Kensington Thinking Mouse (Genius NetMouse, NetMouse Pro, ASCII MieMouse, Logitech MouseMan+, FirstMouse+ are compatible with MS IntelliMouse, when connected to a serial port, thus requires no explicit support) - Added PnP serial mouse identification capability as defined by Microsoft and Hayes in "Plug and Play External COM Device Specification, rev 1.00". This support will enable us to identify the correct protocol to use, or choose a compatible protocol for the given mouse. - Utilize new ioctls defined in `mouse.h' to get hardware and protocol information on PS/2 and bus mouse devices. Try to guess the correct protocol and port combination based on the obtained info. - Use MOUSE_SETLEVEL ioctl. - Use constants defined in `mouse.h' rather than using own definitions. - A New command line option. The -i option prints the information collected though the PnP code and psm/mse ioctls mentioned above, and just quits. This is to test `moused's ability, or inability, to detect the correct protocol for the given mouse automatically. - A new command line option. The -m option maps a physical button to a logical button. - A new command line option. The -z option maps the Z axis movement to another axis or a pair of buttons. - Add other options: -3, -C -F -P. - Added a handler for SIGHUP. This has been suggested by somebody in the past (I don't remember who). He wanted this because he wants to attach or detach a mouse while his laptop is suspended. Now `moused' will reopens and reinitialize the specified port whenever a SIGHUP is received. I don't know how useful this can be...
* Remove unused variables. Lowercase err() strings.charnier1997-09-251-39/+21
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* Allow the samplerate (in DPI) to be set on the command line, the rest ofpeter1997-03-291-2/+6
| | | | the code appears to support it.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Modified moused to use select rather than read. This fixes usingsos1997-01-201-0/+7
| | | | | the PS/2 mouse (psm device). Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* gut and overhaul moused, it was simply not working for me on any mousepeter1996-09-101-48/+224
| | | | | | | | | | | | | | | | | | | I could find. This change does the following: - s/usage()/break;/ in handling the -s switch. - use err/warn instead of fprintf(stderr, ... strerror()); exit(1); - implement Hitachi PUMA HitTablet support from the XFree86 code, whatever the hell that is. :-) - correctly implement baud rate setting, too much was cut from the XFree86 code, the critical parts were a sweep over all likely mouse powerup baud rates to switch it to the reqested rate. - logitech support was busted (at least on mine, which is autosensing and runs in either mmseries or logitech mode depending on the handshake code at startup. Among other things, you talk to it at 1200, then switch to the target baud later. Some remaining problems.. samplerate setting is missing, but I've not found where this is meant to be set yet. I presume this is resolution setting of some kind.
* Fix for the problem that moused hangs if it is started from /etc/rcsos1996-09-091-2/+2
| | | | | Introduces the /dev/consolectl device for controlling various console related things (given syscons is used).
* Change the way moused talk to syscons, now its only delivering mouseeventssos1996-06-251-19/+5
| | | | | | | | via an ioctl (MOUSE_ACTION). Fixed a couple of bugs (destructive cursor, uncut, jitter). Now applications can use the mouse via the MOUSE_MODE ioctl, its possible to have a signal sent on mouseevents, makeing an event loop in the application take over mouseevents.
* Moused is the daemon that provides the connection between the cut&pastesos1996-06-211-0/+562
functionality in syscons and the real mouse hardware. If moused is run one can switch on/off the mousepointer with vidcontrol -m on/off. There is no manpage yet, but a fairly descriptive usage message.... Reviewed by:sos Submitted by: Michael Smith Obtained from:Some of the mouselogic comes from XFree86
OpenPOWER on IntegriCloud