summaryrefslogtreecommitdiff
path: root/sys/dev/adb
AgeCommit message (Collapse)Author
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxMiod Vallat
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2013-08-22Remove a mac68k leftover, no object change.Martin Pieuchot
2013-05-31Add switch screen and scrollback commands to be used with upcomingMartin Pieuchot
virtual terminal support.
2013-03-09Drop 3rd and 4th clauses from Bradley A. Grantham's license, from NetBSDMartin Pieuchot
via Daniel Dickman. ok deraadt@
2012-06-23Put back the non-controversial changes from r1.5 that I reverted onMartin Pieuchot
r1.6 due to the key modifier change. In details: - Fix the backspace key under X11 - Always use the command key (58) as modifier in console for *all* European keyboards - Do not use the small enter key (52) as modifier in console for the fr, sg, and sv_nodead layouts. - Do not redefined keys that are inherited from the default layout (de, uk). ok shadchin@, miod@
2012-01-29Swap the keycodes of the two swapped keys of Apple ISO keyboards and updateMartin Pieuchot
ISO layouts accordingly. This fix the US layout on ISO keyboards and the swaped keys issue under X11. ok miod@, shadchin@
2011-11-09Auto-repeat keys in WSKBD_RAW mode is not needed.Alexandr Shadchin
WSKBD_RAW mode used in X, but X independently implements auto-repeat keys. ok miod@
2011-10-23Revert key modifier change in raw mode, it's not clear which modifier weMartin Pieuchot
want to use for ADB keyboard.
2011-10-09Fix the backspace key under X11 and make the 'option' key behaves like inMartin Pieuchot
console. The 'command' key is now the alt modifier. Based on a diff from shadchin@ with inputs from miod@ ok shadchin@, miod@
2011-06-16Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofMartin Pieuchot
the specifics adb arguments. Now apm(4) no longer depends on adb stuff and piic(4) doesn't attach on a via-cuda machine (e.g. my color G3 iMac). ok miod@
2011-06-15Add a const char* as first member of struct adb_attach_args, so that we canMiod Vallat
pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
2011-06-13Not need define KEYBOARD_ARRAY (keyboard array used only in dev/adb/akbd.cAlexandr Shadchin
if defined WSDISPLAY_COMPAT_RAWKBD). Move keyboard array from dev/adb/keyboard.h to dev/adb/akbdmap.h. ok miod@
2010-05-23mac68k can move to defining __mac68k__ insteadTheo de Raadt
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-06-13Make kbd -l work for adb. -mojMats O Jansson
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-03-13Drop the second and third arguments to adb_op_sync, for they are not used;Miod Vallat
while there, remove explicit global variable initializations to zero, and appease the gods by removing the most ludicrous spurious casts. No functional change (except for code shrinkage).
2006-03-23Previous state machine for caps lock would prove ineffective if caps lockMiod Vallat
was remapped to a dead key (such as control). Fortunately (?), accounting power key transitions can help reconstructing the exact caps lock key behaviour - this state machine is still flawed, and one can make it go wrong by hitting one of the caps lock and power keys while the other is held, but for now we'll assume people who do this are smart enough to be able to put the state machine in the correct state back, while mere mortals will never do such things anyway. Spotted by Matthias Kilian, ok itojun@
2006-03-10Switch to RAWKEY_xxx constants.Miod Vallat
2006-02-12Remove unused columns from the keyboard[] array. No functional change.Miod Vallat
2006-02-12Clean up the adb_event structure, now that it is never exported to userland;Miod Vallat
also fix handling of caps lock and power keys in akbd; with help from claudio@
2006-02-09Oops, put the default case outside the ADBVERBOSE block in adbprint().Miod Vallat
2006-02-06Attach a wskbd device for unknown adb mapped devices, just in case we lackMiod Vallat
one keyboard id.
2006-02-03Restore patch from rev 1.9 of macppc/dev/ams.c that got lost in codeMatthieu Herrb
factorization: prevent ADB devices other than mices from generating "extended" protocol events. ok miod@
2006-01-18Factorize akbd and ams drivers between mac68k and macppc; while there, startMiod Vallat
moving out common adb code as well, and merge adb_direct.c into adb.c to simplify external header files. No functional change; more cleanups to come.