Commit Graph

114 Commits

Author SHA1 Message Date
mlelstv 9e53e1415d Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
2021-12-25 13:54:13 +00:00
rillig 4a60ed0210 wsconsctl: revert adding LINTFLAGS
https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013482.html
https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013483.html
2021-10-26 17:33:18 +00:00
rillig a59814ca67 wsconsctl: include correct header for lint
Running lint in non-tools mode picked up the header from the installed
system, not the one corresponding to the source code. The installed
header on NetBSD 9.99.88 does not define WSMOUSECFG_MAX yet.
2021-10-11 13:27:47 +00:00
nia d4e118e090 wsconsctl: allow the new "precision scrolling" variables to be configured 2021-09-28 06:20:09 +00:00
mlelstv d9c815ad06 fail on error, not on success. 2021-09-22 14:15:29 +00:00
mlelstv ad2d0017d3 Document keyboard mode ioctls and let wsconsctl manage it. 2020-09-13 07:35:15 +00:00
nia 4a2e556972 Move description of keyboard layouts to wskbd.4, add newer layouts
Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.

wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.
2020-07-13 11:14:12 +00:00
nia d0c1a9d713 More keyboard layouts 2020-07-12 03:37:06 +00:00
mlelstv 71e18f4b60 When merging entries with the keyboard map, print only the resulting changes.
While here, replace bcopy with standad memcpy.
2018-11-23 06:31:57 +00:00
khorben d01557a2c8 Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
2012-12-24 01:29:20 +00:00
khorben 76cf3dff78 Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
2012-12-24 01:27:23 +00:00
khorben 0033dc95e8 Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).

Reviewed by uwe@ (thank you!)
2012-12-24 01:20:12 +00:00
christos 722882388a allow non-command keysyms to be mapped as commands (experimental) 2012-10-23 15:30:45 +00:00
christos 2b7d68ecf8 - remove obsolete = { syntac
- print context for yyerror()
- add a production to clarify a syntax error
2012-10-23 01:59:18 +00:00
matt cf7ed4c9cc Convert to C89 function definitions 2012-03-20 18:50:30 +00:00
wiz 155b16958f Fix typo. 2012-02-14 11:05:32 +00:00
phx 01173747fc Amiga wscons/Xorg support, first phase.
Implemented wscons for CV64 and CV64/3D. Other graphics cards drivers are
prepared for it, but will not be attempted before Xorg is not running.
The wscons support is disabled by default. A GENERIC kernel should behave
like always. Use WSCONS to try out a kernel with wscons support.
Done by rkujawa@ and phx@.
2011-12-15 14:25:12 +00:00
joerg e837071dcc Mark yyerror as static and dead. 2011-08-27 19:01:34 +00:00
joerg 77103d874a input is unused 2011-05-24 12:07:14 +00:00
pooka b915a641c8 update macro names to match new ones
(i don't know why they changed, just fixing the build)
2011-02-06 21:38:09 +00:00
phx c122e153ac Allow standalone commands to be recognized, as in the in-kernel keymaps.
Also allow the Cmd token. Examples:
keycode 210 = Cmd Cmd_BrightnessUp
keycode 211 = Cmd_VolumeToggle
2010-11-30 12:22:06 +00:00
drochner 821d4396bd follow KS_GROUP_Ascii->KS_GROUP_Plain rename in kernel,
noticed by Andreas Gustafsson
2010-01-29 09:49:34 +00:00
christos 652adce2ab add %option noyywrap 2009-10-28 19:43:56 +00:00
snj 268e5bfd87 Mention a number of keyboard encodings.
From Jukka Ruohonen in PR kern/15955.
2009-06-09 19:46:32 +00:00
lukem 48680f64b2 fix sign-compare issues 2009-04-06 12:35:20 +00:00
jnemeth 10655c3e2a PR/40059 - Bug Hunting -- add Xref to wscons.conf(5) 2008-11-29 05:52:32 +00:00
apb 07103d0363 Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-26 14:55:17 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
dholland 79cfdc5aec Clarify message that says the map isn't shown when -a is given.
Resolves PR 32436 from Igor Sobrado based on a suggestion by
Dieter Roelants, except I expanded the message further.
2008-08-25 00:14:46 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry 36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
christos 27ae1373d5 Mention include proper file for keyboard defines; from Zafer. 2006-10-22 19:39:32 +00:00
uwe b87585ec3c Mark splash.enable and splash.progress write-only, there are no ioctls
to get the values.
2006-08-13 23:52:11 +00:00
gdamore a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
jmcneill 8e45f8abca Add the ability to control the splash screen.
wsconsctl -d -w splash.enable=<1|0> to toggle the splash screen, and
 wsconsctl -d -w splash.progress=1 to update the splash animation
2006-02-18 19:35:11 +00:00
jmmv c799a9c4c0 Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
2006-02-05 18:11:46 +00:00
jmmv 2df378f966 Fix two pastos in the code to set 'samplerate'. 2006-02-05 17:45:06 +00:00
jmmv 8b589aee17 Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
wiz a76a5aebb5 Fix typo. From YOMURA Masanori in private mail. 2005-09-11 23:50:46 +00:00
wiz f3ce44eee2 Sort options. Various other fixes. 2005-07-24 21:07:52 +00:00
rpaulo d49bebea61 Add examples for scroll.fastlines and scroll.slowlines.
Also, bump the man page date.

ok wiz@, hubertf@
2005-07-24 20:54:06 +00:00
christos 6499bd69c1 constify. 2005-06-26 22:45:50 +00:00
lukem 86716480cb appease gcc -Wuninitialized 2005-06-02 00:15:02 +00:00
augustss 83ee25f9d4 Show an example of turning off auto repeat. 2005-05-03 13:26:25 +00:00
wiz f2944095c0 Fix a typo and add an s. 2005-05-03 11:57:11 +00:00
augustss e0b1c109ad Add an example for setting keyboard auto repeat rate. 2005-05-03 11:51:34 +00:00
jmmv 8bdb487207 Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.
2005-04-30 16:38:21 +00:00
augustss ecf40361a8 Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
2005-04-29 16:51:33 +00:00