621 questions
0
votes
1
answer
108
views
Windows 11 raw input API bad performance compared to Windows 10 [closed]
With my code which is just a regular RAW input example.... WM_INPUT, RIM_TYPEMOUSE... I'm getting on Windows 10 the full 1,000Hz of my mouse and on Windows 11 I'm getting about 128Hz.
How to fix this ...
0
votes
1
answer
101
views
How to block right mouse button and convert it to middle mouse button without delay (like AutoHotkey)?
I’m trying to remap the right mouse button to act as the middle mouse button in C++ on Windows.
What I did
I wrote code using Raw Input (see below).
My code successfully sends a middle click when I ...
0
votes
0
answers
53
views
GetSystemMetrics with SM_MOUSEHORIZONTALWHEELPRESENT always returns 0?
I'm calling GetSystemMetrics(SM_MOUSEHORIZONTALWHEELPRESENT) and it always returns 0. Thing is, I know I have a horizontal scroll on my mouse (and the raw input device information does come back with ...
0
votes
1
answer
153
views
How to distinguish between Left/Right trigger with WIN32 raw input?
I am using the raw input API to write a simple program for my Xbox controller. I have followed the basic setup steps from https://learn.microsoft.com/en-us/windows/win32/inputdev/using-raw-input and ...
0
votes
1
answer
445
views
How do I get a raw input device's proper display name in C#?
I am making a simple program to enumerate all of the devices currently connected to your Windows along with their pointers, then display the proper name for the device you clicked a button on your WPF ...
0
votes
1
answer
466
views
Getting higher precision win32 timestamps for rawinput than millisecond
I am using raw input as my input api for my game and I was looking to get time stamps for the input presses. But everything I find is at millisecond precision (GetMessageTime()). Which is not good ...
0
votes
1
answer
530
views
How to use DeviceIoControl on a rawinput device handle
So I have a program that is using multiple keyboards as input using raw input and I want to mess with the indicator lights of caps lock, scroll lock, and num lock per keyboard.
So my approach was to ...
0
votes
0
answers
71
views
how can we creating detection version on python 2 and python 3
Hello there i need some help for a little, i working on python version 3/2, i wanna create a system detection on python script and how can i solve the problem like this:
try:
import platform
...
-3
votes
1
answer
76
views
Why is my Python input overriding itself?
Context:
I'm doing the Udemy "100-days-of-code" course and hit a weird stumbling block.
Python version: 2.7-64
I ultimately solved it by using the "input" command (vs raw_input) ...
0
votes
0
answers
88
views
Can I identify the same RawInput message sent to two different windows?
This question is part of a long story about trying to get input messages, WM_INPUT, from outside of the main window for an application.
The reason is that the main loop's frequency is lower than the ...
0
votes
2
answers
319
views
GetRawInputDeviceInfo with RIDI_DEVICENAME returns invalid memory
In my code I have a call to the GetRawInputDeviceInfo function, passing in the RIDI_DEVICENAME command. It is supposed to fill the 3rd parameter with a string containing the name of the buffer, and ...
0
votes
0
answers
399
views
C# (RawInput, RegisterRawInputDevices)
A function "RegisterRawInputDevices(RawInputDeviceRegistration[] pRawInputDevices, uint uiNumDevices, uint cbSize)" from user32.dll blocks the main GUI thread.
Is there a way to keep GUI ...
0
votes
0
answers
246
views
Is the latency for the sendinput / receiving raw input the same or almost the same for all programs?
I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that ...
0
votes
1
answer
181
views
EOF error with raw_input - Issue executing Python script from a reverse shell
I am currently helping my university's cyber security program by creating a simple Capture the Flag style python script to be used for the final exam. I created the script and everything is working ...
0
votes
1
answer
393
views
Can I get raw mouse input as a WM_INPUT twice?
I am trying to modify an existing application by adding an input gathering thread outside of its main thread.
The original application already processes mouse input pretty decently inside its main ...