| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
determine if the device was opened in read/write mode.
ok mpi@ visa@
|
|
|
|
|
| |
function name in order to reduce grep noise. Also, some of them where referring
to the wrong function.
|
|
|
|
|
|
|
|
|
|
|
| |
after checking for exclusive access, malloc() can sleep in
wsevent_init() opening up for a potential race where more than one
thread may be able open the device. Prevent this by checking if the race
was won after calling malloc().
While here, switch to mallocarray as proposed by both cheloha@ and mpi@
ok mpi@
|
| |
|
| |
|
|
|
|
| |
ok visa@
|
|
|
|
|
|
| |
translates such requests into TIOCSPGRP.
ok visa@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the process who opens the device the default recipient of sigio is removed as
a side-effect of this change. Issuing ioctl(FIOSETOWN) is therefore mandatory in
order to receive sigio, which is more consistent with other subsystems
supporting sigio.
This change is all made possible by the new sigio(9) API and prevents wscons
from keeping a pointer to the recipient process. Usage of such pointer could
cause a panic since wscons is not inform on process deallocation, leaving a
dangling pointer behind.
ok mpi@ visa@
|
| |
|
|
|
|
|
|
|
| |
It seems that the filter is obsolete, the default method is sufficient.
Simplify and clean up some related code in wsmouse.
ok mpi@
|
|
|
|
|
| |
purposes can be enabled and disabled by WSMOUSEIO_SETPARAMS
requests.
|
|
|
|
|
|
|
|
|
| |
this gets rid of the source annotation which doesn't really add
anything other than adding complexitiy. randomess is generally
good enough that the few extra bits that the source type would
add are not worth it.
ok mikeb@ deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Single-touch and multi-touch coordinate inputs are treated more uniformly,
and the hysteresis filters have a more consistent implementation. If
possible, pointer control will be assigned to touches with coordinate
updates that pass the default hysteresis filter (the function has been
moved to wsmouse.c). The "strong" variant of hysteresis has been
improved, the new version won't double the threshold when a movement
changes the orientation on an axis.
There is an additional change in wstpad_configure, which ensures that a
zero size disables an edge area even if the coordinate limits are
misconfigured.
|
|
|
|
| |
that identify and mask touches resting in the bottom area.
|
| |
|
|
|
|
| |
ok mpi@
|
|
|
|
|
|
|
|
|
| |
- Remove unnecessary abstraction
- Make it possible to support new features/options without ABI break
- Remove some complexity and hard limits
- Simplify & keep documentation close to options
ok bru@
|
|
|
|
| |
ok bru@
|
|
|
|
|
|
|
|
| |
The wstpad file contains the core of a touchpad-input driver that
is coupled with wsmouse. It is active in compat-mode if wsmouse has
been configured for it.
ok @matthieu @stsp @mpi
|
|
|
|
|
|
| |
setting parameter values.
ok matthieu@
|
|
|
|
| |
ok mpi@
|
|
|
|
| |
from tom
|
|
|
|
| |
ok kettenis@
|
|
|
|
| |
ok mpi@
|
|
|
|
| |
ok mpi@
|
|
|
|
|
|
|
| |
This change adds new input-processing functions to wsmouse and
adapts the touchpad drivers.
ok mpi@, shadchin@
|
|
|
|
|
|
| |
Needed for libinput port.
ok guenther@, miod@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
| |
known to break mice upon resume.
ok shadchin@
|
|
|
|
|
|
|
|
|
| |
Send WSCONS_EVENT_SYNC every time you call wsmouse_input(). Used to synchronize
and separate events into packets of input data changes occurring at the same
moment in time. For example, motion of a mouse may set the DELTA_X and DELTA_Y
values for one motion, then emit a SYNC.
ok matthieu@. tested edd@, Henri Kemppainen and Alf Schlichting.
|
|
|
|
|
|
|
| |
of wscons (which usually get disabled for installation kernels, to save
space), instead of duplicating parts of it to too many places.
No functional change.
|
|
|
|
| |
ok gilles@, matthieu@, mpi@, miod@, deraadt@
|
|
|
|
| |
ok miod@, matthieu@
|
|
|
|
|
|
|
|
|
| |
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
|
|
|
|
|
| |
This is needed for the addition of further suspend/resume actions.
Okay deraadt@, marco@.
|
|
|
|
|
|
| |
Mouse. Currently limited to USB mice.
Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
|
|
|
|
| |
from alexandre ratchov. ok claudio
|
|
|
|
| |
fgs@ and mickey@; ok deraadt@.
|
|
|
|
|
|
| |
mode, thus only been used to issue ioctls.
This chunk was lost in r1.14; reported by Douglas Santos.
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
| |
and bugfixes (the kqueue code, /dev/wsmuxctl and screen border color changes
have not been picked), keeping local changes.
Tested by many on alpha/cats/hp300/i386/macppc/sparc/sparc64/zaurus if not more.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
|
|
|
|
|
|
|
| |
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
|
|
|
|
| |
X-Window at the same time, removing the need to kill wsmoused(8) before
starting X-Window.
|
| |
|
| |
|
|
|
|
|
| |
disabled by default, also supports vsync blanking, disabled by default.
aaron@ looked at it a while back and i fixed problems he had indicated.
|