The raw input API provides a stable and robust way for applications to accept raw input from any HID (Human Interface Devices), including the keyboard and mouse.
Questions tagged [raw-input]
623 questions
3
votes
1 answer
How to get mouse movement information when cursor is off-screen
[please see update at the end]
I'm an old stack overflow user (as most developers on, you know, Earth), but that's my first question here.
I'm trying to use an "air mouse" for gaming (pointing it to the screen), but as the mouse sensor is a…

FabricioNK
- 31
- 3
3
votes
2 answers
RAWINPUT RAWHID Structure in C# Byte Array
I am trying to read data from HID devices using:
uint dwsize = 0;
//RAWINPUT input = new RAWINPUT();
uint result = GetRawInputData(lParam, RID_INPUT, IntPtr.Zero, ref dwsize, Marshal.SizeOf(typeof(RAWINPUTHEADER)));
//_rawBuffer = new RAWINPUT(new…

Ian.V
- 345
- 3
- 19
3
votes
2 answers
X and Y coordinate from Precision touchpad with raw input
Background
I am trying to get the touch coordinates from precision touchpads with C++ in Win10 with the program running in background.
Research
Rawinput can get data in background.
I can get the data with these usage id and pages from microsoft…

Benny10033
- 31
- 3
3
votes
5 answers
How to use raw_input with no input
I want to use raw_input() function in Python.
I want to receive a number from user about the size of the storage
i wrote this down :
number=raw_input()
if the user doesn't provide an input then number = 10 so
if number is None:
number = 10
when…
user7374554
3
votes
4 answers
raw_input() is deprecated in python 3.1?
Possible Duplicate:
Easy: How to use Raw_input in 3.1
in old style i can entering data with this function

elgianka
- 223
- 2
- 11
3
votes
3 answers
Execute R Script that asks for and incorporates user prompts
I am developing an R script in RStudio that requires the user to input two values (a first name and a last name). These inputs will later be used for pattern matching of a text document.
In Python, raw_input would be used to gather these values and…

user3271783
- 113
- 6
3
votes
0 answers
How to swallow mouse input while using Raw Input?
Situation: I am working on an overlay application that needs to intercept the input headed to another process and block that input if necessary.
Previous Attempts: So far I have created a low level mouse hook that blocks mouse input to some target…

Jacob Biddle
- 80
- 7
3
votes
2 answers
Python: What does this mean in raw_input function?
So, I recently started learning python and I am in the raw_input() section.
So while I was trying out different things, I made an error (at least that's what I think for now). Can someone please explain what is the difference between the two…

DigvijaySingh
- 45
- 4
3
votes
1 answer
Line of Python code not working in my game
So this line of code in my Python game is not working:
direction=raw_input("What would you like to do?\n")
It's supposed to get the player to type in a command either: North, South, East, West, Look, Search, Commands or Inventory. It's coming up…

Khalil Ismail
- 39
- 2
3
votes
0 answers
How is the guidProduct field of DIDEVICEINSTANCE generated
How does DirectInput generate the GUID for the guidProduct field in DIDEVICEINSTANCE? The documentation reads:
guidProduct
Unique identifier for the product. This identifier is established by the manufacturer of the device.
I am searching for a…

The Fiddler
- 2,726
- 22
- 28
3
votes
1 answer
RAWINPUT strange behaviour
I'm having some strange behaviour with RAWINPUT. The following code below WORKS:
case WM_INPUT:
{
UINT rawInputSize;
GetRawInputData((HRAWINPUT)(lParam), RID_INPUT, nullptr, &rawInputSize, sizeof(RAWINPUTHEADER));
LPBYTE inputBuffer…

KaiserJohaan
- 9,028
- 20
- 112
- 199
3
votes
7 answers
Program stuck in while loop not printing
import random
def usertype():
randletter = random.choice('qwer')
userinput = raw_input('Press '+str(randletter))
if userinput == randletter:
return 'Correct'
else:
return 'Incorrect'
def usertypetest(x,y,result):
…

Bretsky
- 423
- 8
- 23
3
votes
2 answers
How to use raw input to define a variable
Here is my code:
Adherent = "a person who follows or upholds a leader, cause, etc.; supporter; follower."
word=raw_input("Enter a word: ")
print word
When I run this code and input Adherent, the word Adherent is produced. How can I have the…

user2757442
- 165
- 5
- 12
3
votes
2 answers
Python 2 raw_input() : EOFError when reading a line in WINDOWS 7 command prompt
NOTE: Many of the same questions have been asked about python raw_input() in sublime text. This question is NOT about sublime. The python code is called in Windows command prompt which unlike the sublime terminal does support interactive inputs.
I…

Argyll
- 8,591
- 4
- 25
- 46
3
votes
3 answers
Python client side in chat
I have a problem while trying to build the client side of a chat. I just in the begining, this is my code:
import socket
my_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
my_socket.connect(("10.10.10.69",1234))
while True:
…

Nityuiop18
- 113
- 3
- 14