Click here to Skip to main content
13,449,326 members (46,572 online)
Click here to Skip to main content


220 bookmarked
Posted 12 Jan 2007

Using Raw Input from C# to handle multiple keyboards

, , 9 Mar 2015
Windows XP supports multiple keyboards, but by default, the .Net Framework will treat them all as one. This article explains how to use the Windows API Raw Input methods to support multiple keyboards from a C# application.



Compare Revision Minor Date Status Editor
8 - publicly available No 14-Mar-17 9:04 Available Steve Messer
Updates in content.
6 No 9-Mar-15 10:31 Available Sean Ewington
Initial creation
5 No 9-Mar-15 7:43 Pending Steve Messer
Initial creation
4 No 9-Mar-15 7:42 Pending Steve Messer
Added a download link for the latest code
2 No 8-Mar-13 20:56 Pending Steve Messer
64bit support, kypress handing, left and right versions of shift, ctrl, and alt, refresh devices on usb insertion/removal
1 No 19-Mar-07 14:45 Available Chris Maunder


This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


About the Authors

Emma Burrows
Software Developer
United Kingdom United Kingdom
Emma's first steps in programming took place at primary school over thirty years ago, thanks to a TI-99/4A and the LOGO language. Following a Master's degree in English Studies (obtained, strangely enough, with a paper on the birth of the microcomputer), Emma started her career in IT.

Over the last ten years, she has worked as a localiser, technical writer, editor, web designer, systems administrator, team leader and support engineer, before finally making the move into software development a few years ago. She is now thrilled on a daily basis that she is getting paid for writing code after doing it for free half her life!

Steve Messer
Software Developer (Senior)
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180318.3 | Last Updated 9 Mar 2015
Article Copyright 2007 by Emma Burrows, Steve Messer
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid