OpenBSD CVS

CVS log for src/sbin/wsconsctl/mouse.c


[BACK] Up to [local] / src / sbin / wsconsctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Sun Jul 2 21:44:04 2023 UTC (11 months, 1 week ago) by bru
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.20: +12 -1 lines
Diff to previous 1.20 (colored)

Add button mappings for two- and three-finger clicks on clickpads.

Based on a proposal of tobhe@.

ok tobhe@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Aug 19 21:42:33 2019 UTC (4 years, 9 months ago) by bru
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.19: +6 -3 lines
Diff to previous 1.19 (colored)

Add a field for enabling/disabling reverse scrolling.

ok patrick@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:46 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +8 -8 lines
Diff to previous 1.18 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 7 22:15:36 2018 UTC (6 years, 1 month ago) by bru
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.17: +18 -10 lines
Diff to previous 1.17 (colored)

Add the logging parameters to mousecfg.c, and make the 'param' field
available for all wsmouse devices.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 22 22:14:11 2018 UTC (6 years, 4 months ago) by bru
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

1. Add a field for configuring the size of edge areas on touchpads.
2. Remove code that is obsolete because all touchpad drivers configure
wsmouse for compat mode now.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 24 09:36:13 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
Changes since 1.15: +1 -7 lines
Diff to previous 1.15 (colored)

remove defines for ioctls the kernel doesn't recognise
ok mpi@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 1 23:23:44 2017 UTC (6 years, 10 months ago) by bru
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Handle the flags of mousecfg fields correctly.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 21 20:38:20 2017 UTC (6 years, 10 months ago) by bru
Branch: MAIN
Changes since 1.13: +63 -1 lines
Diff to previous 1.13 (colored)

Add fields for wsmouse/touchpad configuration.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 8 16:44:07 2012 UTC (11 years, 10 months ago) by shadchin
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

fix type (part from NetBSD)

ok miod@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 14 08:25:12 2012 UTC (11 years, 11 months ago) by shadchin
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

zap whitespace

ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 20 00:20:55 2010 UTC (13 years, 9 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.10: +10 -16 lines
Diff to previous 1.10 (colored)

Don't silently ignore errors if we cannot open the device. While I'm here
simplify the code and apply some style(9).
Discussed with and ok miod@

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 1 16:47:58 2010 UTC (13 years, 11 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.9: +19 -1 lines
Diff to previous 1.9 (colored)

Learn wsconsctl to handle more than the first keyboard, mouse and display.
E.g. if we have a /dev/wskbd1 keyboard1 will show up when doing a -a.

wsconsctl keyboard1 will now show you all variables for keyboard1.

feedback and ok miod@. -moj

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 24 16:28:50 2009 UTC (14 years, 6 months ago) by matthieu
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.8: +9 -2 lines
Diff to previous 1.8 (colored)

Preserve rawmode when setting scale. ok miod@, oga@.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 15 20:32:28 2009 UTC (14 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.7: +14 -18 lines
Diff to previous 1.7 (colored)

for rw query and print value that has actually been set in the
similar way that mixerctl does.  so that info for setting things
like brightness makes sense (since we scale, like, 8 values to
per-cent).  also, it consistifies get/put, shrinks code since we
don't need to do that in every single 'driver'.  ok miod@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:06 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.6: +1 -8 lines
Diff to previous 1.6 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 8 20:51:58 2007 UTC (17 years, 1 month ago) by robert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.5: +52 -1 lines
Diff to previous 1.5 (colored)

Introduce the mouse.rawmode and mouse.scale fields for
touchscreen calibration via ioctls.

ok miod@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 11 18:27:19 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.4: +7 -9 lines
Diff to previous 1.4 (colored)

ansi

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 24 17:45:59 2001 UTC (22 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.3: +12 -12 lines
Diff to previous 1.3 (colored)

- repair usage() output
- when changing display.foo settings, print "display.foo -> bar" like done
for mouse.* and keyboard.*
- use warn() over err() whenever possible and appropriate code path to display
as much as useful information as possible even if one ioctl fails. This is
especially useful to get the display.* settings via wsconsctl -a if your
mouse can't be probed, like on the iBook.

ok mcikye@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 1 10:33:10 2001 UTC (22 years, 10 months ago) by hugh
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Correct diagnostic string per PR 1981 by Kaspar Toomik.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 30 02:12:57 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.1: +11 -11 lines
Diff to previous 1.1 (colored)

make it more sysctl-like, ommit -kmd switches.
no backwards compatibility keeped.
add ability to change screens from cmd line.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 1 23:52:45 2000 UTC (23 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8

wscons control tool; initial import from newtbsd tree

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.