Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9098441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:21:44+00:00 2026-06-17T00:21:44+00:00

I am working on a small project: I need to take the input from

  • 0

I am working on a small project: I need to take the input from a number pad and run macros based off which key was pressed. However, I’m having some difficulty reading from the number pad specifically. stdin simply reads from the key inputs; I actually need the raw data output from the number pad USB device. The number pad is a separate device from the keyboard.

My research indicates I’ll have to write a device driver for it using the Windows DDK, but this doesn’t quite make sense to me. I want to select a different USB input device as a keyboard – this shouldn’t require a new driver, as I’ll still be using it as a keyboard. I just need to change the scope of my input stream to just the USB device.

I could also be missing some key piece of information. So, is there a simple way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:21:46+00:00Added an answer on June 17, 2026 at 12:21 am

    You have to read the RAW usb-events from the right device. You can write that code either yourself by reading ‘Raw Input‘ or ‘Human Interface Devices Reference‘ (part of the Windows Driver Kit) on MSDN.

    Or you could use libusb, as mentioned on Read Raw USB Input on Windows, which hides a lot of the crufty details under a neat API. A rough idea is to:

    • get the list of devices via libusb_get_device_list()
    • find the keyboard you are interested in via libusb_get_device_descriptor(), check the examples/listdevs.c file for a clue about how to do that.
    • open the device via libusb_open()
    • do your magic (i think polling for events will fit)
    • and .. close the device at the end

    Side note: libusb flawlessly built on Windows8 with VS2012 Express + WDK8.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a small starling based project and i need something as
Im working on a small project which I need to send a couple of
Im currently working on a small project in which I need to model the
Im working on a small project which has a textarea and i need help
I'm working on a small project in VB.Net where I get a input from
i am working on a small project that i need the ability to let
I'm working on a small design project, part of which involved writing out text
I'm working on a small project, and need to implement internationalization support somehow. I
I am working on a small project using C# and EF5.0 and I need
I'm currently working on a small project in java where I need to process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.