jakllsch
642075e27e
Add us.dvorak keymap variant for ADB keyboards. Addresses PR 51255.
...
Tested by sevan@.
2016-06-20 00:05:58 +00:00
christos
f1143c9783
We don't have Debugger if we don't have DDB.
2015-07-29 08:45:28 +00:00
macallan
3940e348fc
add a sysctl to optionally ender ddb when pressing the power button
2015-07-27 19:27:04 +00:00
macallan
f1a21b65f4
aprint_*-ize
2014-11-08 17:21:51 +00:00
macallan
caa649f527
nicely ask the keyboard to distinguish between left and right Control, Alt
...
and Shift keys.
Welcome to the world of accents and diacritics!
2014-11-08 16:52:35 +00:00
macallan
e38e5b4067
actually support EMP
...
( as in, look for additional motion info bits, not just buttons )
2014-10-29 00:48:12 +00:00
nisimura
7bc55a445e
minor tweaks to shut gcc4.8 warning off.
2013-11-18 11:02:34 +00:00
chs
cbab9cadce
split device_t/softc for all remaining drivers.
...
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
macallan
c7431f2fa3
some older powerbook keyboards use the same scancode for the power button as
...
later ones send on Fn-Command - now we look for that 'special' scancode only
on keyboards that actually need it
2012-09-19 04:55:06 +00:00
he
d20eaacb60
Move adbkbd_setup_sysctl() declaration to outside NWSMOUSE > 0, to
...
match the rest of the code.
2012-09-02 21:06:54 +00:00
macallan
86f21a33c1
add options ADBKBD_EMUL_USB to turn USB emulation on by default
2012-08-30 01:27:44 +00:00
macallan
e73b198544
when in event mode, optionally pretend to be a USB keyboard
...
with this USB and ADB keyboards can coexist at the same mux, with X just
listening to /dev/wskbd instead of having to open each one separately
this can be controlled via sysctl, defaults to off for now
needs testing with non-US keyboards
2012-08-29 02:44:07 +00:00
dsl
e21a34c25e
Add some pre-processor magic to verify that the type of the data item
...
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
macallan
aebeacfef7
only require the power button to be pressed twice on keyboards where it's easy
...
to hit by accident, send an event to sysmon immediately otherwise
2011-11-16 06:56:49 +00:00
christos
756a508c2d
Fix gcc-4.5 warnings. If you still see them, e-mail them to me.
2011-08-18 02:18:40 +00:00
mbalmer
631d5867a0
According to the Oxford Dictionary of Etymology, a wether is a male sheep
...
or ram.
2011-08-01 12:28:53 +00:00
macallan
95065fc5bb
sanitize sysctl interface in order to appease gcc 4.5
2011-07-28 16:28:12 +00:00
macallan
4f9da34eba
make debug code compile again
2010-09-08 04:48:03 +00:00
macallan
ba9742b0ee
Make the movement-while-tapping threshold smaller so moving the cursor by a
...
few pixels won't trigger a button event. This should probably become a sysctl
knob.
While there, remove some commented out stuff and fix a typo.
2010-08-11 16:54:10 +00:00
cegger
22f40c6af4
KNF
2009-05-12 14:07:01 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
macallan
f2769c0b12
Let ADB button devices send PMF events instead of pretending to be keyboards.
2008-05-15 19:19:50 +00:00
martin
3028e483e4
Convert to new 2 clause license
2008-04-29 06:53:00 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
bebbf57b68
use aprint_*_dev and device_xname
2008-04-05 21:31:23 +00:00
matt
5d109a29b5
split softc/device_t
2008-03-26 18:04:15 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
macallan
248f35faf5
make this compile without wsmouse support in the kernel
2007-10-10 18:36:52 +00:00
macallan
bcf20d1bb5
add keysyms for scrollback support
2007-08-06 03:40:10 +00:00
macallan
5770a63871
in order to avoid accidential shutdown only send power button events to powerd
...
if the power button is pressed twice, with more than two but less than five
seconds delay
2007-05-09 00:10:56 +00:00
macallan
2f13af2bed
add a very simple driver for ADB button devices found on halfway recent
...
*Books. So far it only returns function key events.
2007-04-16 23:34:43 +00:00
macallan
9fbe2d39ef
don't panic when someone presses the power button without powerd running
2007-04-16 23:33:10 +00:00
macallan
4949af4d83
actually support WSDISPLAY_COMPAT_RAWKBD
...
unlike akbd we're sending ADB scancodes though, and don't try to translate
them into XT scancodes
2007-04-16 02:12:11 +00:00
macallan
d92688e114
more autoconfig cosmetics
2007-04-16 00:22:55 +00:00
macallan
b0c5f0da81
cleanup autoconfig output
2007-04-16 00:18:34 +00:00
macallan
27805ca303
on the iBook Fn-Command sends the same scancode as the power button on some
...
powerbooks so we'll listen to this scancode only on powerbooks
2007-04-16 00:16:43 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
macallan
562219389b
update copyrights
2007-02-20 01:32:33 +00:00
macallan
f6a33e5a19
report power button events to sysmon
2007-02-20 01:27:25 +00:00
tsutsui
b184e0b11b
Fix botch on newlock2 merge.
2007-02-10 03:38:47 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
macallan
4909469d5d
add a sysctl to turn off tapping to button event translation, same as in
...
ams
2007-02-09 21:07:37 +00:00
macallan
7044741d2d
do a bus reset before looking for devices
2007-02-09 21:06:48 +00:00
macallan
ab42288391
avoid another collision
2007-01-18 00:49:17 +00:00
macallan
fcde3ac6f3
new, simplified ADB drivers
2007-01-17 23:20:16 +00:00