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 8964985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:42:46+00:00 2026-06-15T16:42:46+00:00

So I am working with RAWINPUT and I am trying to figure out how

  • 0

So I am working with RAWINPUT and I am trying to figure out how to check this:

data.keyboard.Flags

to see what flags are on, I want to be able to check for things like key up and key down as well as left and right keys.

Do you need to do something like this:

if(data.keyboard.Flags == (RI_KEY_MAKE|RI_KEY_E0))

and

if(data.keyboard.Flags == (RI_KEY_BREAK|RI_KEY_E0)) 

I know for the SHIFT key I should check the makecode
left being: 0x2a
right being: 0x36

what about the CTRL and ALT keys

  • 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-15T16:42:47+00:00Added an answer on June 15, 2026 at 4:42 pm

    You’ll need to know the raw scan codes for the keys. The core reference for them is this Word document. A bit hard to wrestle through, the scan code table on page 16 is the most useful resource.

    Do note how you have to be careful with the E0 flag. It is used for keys that were added in later keyboard designs. The original IBM PC keyboard always had two shift keys so they are sent with dedicated scan codes without E0. But Right-Ctrl and Right-Alt were added later, their scan codes are respectively E0 1D and E0 38, the left ones are 1D and 38 without the E0 flag.

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

Sidebar

Related Questions

Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
I can not figure out why my code is not working, key_one= raw_input(Enter key
I am working on a Python chat script, the client looks like this: import
I'm trying to figure out a 'simple' dictionary/database with Python, which will retrieve a
I am trying to develop a menu which will: Check to see if /tmp
Working with H2 I get this error when I try to write a row
Trying to get a simple python twisted client - server application working. The intention
I just picked up IronPython and I've been trying to get this IronPython script
I am working on this small little piece in python and when I run
I've been working on this for 2 days and still I do not manage

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.