Re: windows noob needs pointers to writing a device driver

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



the extra key's scan codes in a sun keyboard are not handled by the keyboard
stack, they are handled by windows input subsystem itself (the raw input
thread (RIT)). if it is a ps2 device, the scan codes bubble up to the RIT.
if it is a usb device, they are probably lost at the HID mapper layer
(kbdhid.sys) b/c the parser does not know about the usage -> scan code
mapping for those keys (but it could, this is off the top of my head).
Technically you could attempt to add value here, but that would be very
difficult given how kbdhid reports packets.

If the device is neither ps2 or usb, you have a lot more work to do b/c you
need to interface w/the hw itself.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"shea martin" <smartin@xxxxxxxxx> wrote in message
news:grm8e.1043755$8l.57091@xxxxxxxxxxx
Tim Roberts wrote:
Shea Martin <smartin@xxxxxxxxx> wrote:

I am a fairly experience c/c++ programmer, but I have done very little
work on the windows platform. I would like to try my hand at writing a
device driver for a usb keyboard.


USB keyboards do not need drivers. Windows supplies one automatically.

What about a Sun Type 6 keyboard? I can't seem to the the extra function
keys (cut/paste/front/again ... etc) to work.

I'll have a look at the DDK, thanks.

~S


.



Relevant Pages

  • Keyboard at TC1000 (was Re: HEADSUP: kbdmux(4) is in both HEAD and RELENG_6)
    ... Detachable USB keyboard works ... Scan codes are another story - with no ... I used this patch: ...
    (freebsd-current)
  • Re: Why do I need a SERIAL keyboard during Windows Installation?
    ... Under certain Windows XP environments the 133PQ Keyboard is not enumerated correctly during installation on the TeamPoS 2000 resulting in some of the Keyboard functionality being non-operational under OPOS. ... the USB keyboard IS recognised by the BIOS on my PC but need to set the "Enable USB legacy support" option to allow the keyboard to function in the "startup menu" and other text-based areas of Windows. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: keyboard and mouse not responding
    ... Is this a USB keyboard and mouse? ... If so, try booting without them and plugging them in once Windows is finished loading, or borrow a PS2 keyboard and mouse, boot with those, then update the USB drivers in Device Manager. ...
    (microsoft.public.windowsxp.general)
  • Re: PS/2 Keyboard
    ... > I have a user reporting an unusual problem with their Windows XP ... > was forced to switch to a PS/2 Keyboard for whatever reason, ... Unplug the USB Keyboard. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Apple issues warning on Vista
    ... put out the same scan codes for the various buttons, and if the keyboard is, ... with the scan codes it receives. ... It it for this reason that you can plug in a Microsoft Pro USB keyboard into ... Anyway, when I refer to "standard keyboard" in the context of Windows, I am ...
    (comp.sys.mac.advocacy)