Click here to Skip to main content
14,576,812 members
   

C#

 
QuestionHow to capture (read) feedback data from games in C# or C++ ( like vibration, force feedback, gunshot, explosion) Pin
Member 113408333-May-20 21:53
MemberMember 113408333-May-20 21:53 
AnswerRe: How to capture feedback data from games ( like vibration, force feedback, gunshot, explosion) Pin
Pete O'Hanlon3-May-20 21:02
subeditorPete O'Hanlon3-May-20 21:02 
GeneralRe: How to capture feedback data from games ( like vibration, force feedback, gunshot, explosion) Pin
Member 113408333-May-20 21:53
MemberMember 113408333-May-20 21:53 
GeneralRe: How to capture feedback data from games ( like vibration, force feedback, gunshot, explosion) Pin
Richard MacCutchan3-May-20 23:21
mveRichard MacCutchan3-May-20 23:21 
AnswerRe: How to capture feedback data from games ( like vibration, force feedback, gunshot, explosion) Pin
Richard MacCutchan3-May-20 21:05
mveRichard MacCutchan3-May-20 21:05 
AnswerRe: How to capture (read) feedback data from games in C# or C++ ( like vibration, force feedback, gunshot, explosion) Pin
Member 79891224-May-20 0:00
MemberMember 79891224-May-20 0:00 
GeneralRe: How to capture (read) feedback data from games in C# or C++ ( like vibration, force feedback, gunshot, explosion) Pin
Member 113408334-May-20 2:05
MemberMember 113408334-May-20 2:05 
GeneralRe: How to capture (read) feedback data from games in C# or C++ ( like vibration, force feedback, gunshot, explosion) Pin
Member 79891224-May-20 3:26
MemberMember 79891224-May-20 3:26 
It seems as if you assume that all sorts of output more or less by definition go through some standard code that is instrumented for hooking up listeners (or piping the information through a plugin for processing before bneing passed on).

While such hook (/plugin) mechanisms have become increasingly more common in recent years, they are always explicitly programmed in the software you want to hook into. It could be implemented in some library, not necessarily in the application specific code.

Games have always had extreme performace requirements, and they use a big bag of tricks to avoid a waste of resources. This is not where you would expect the developers to waste CPU cycles on checking the list of hooked procedures, both because there usually wouldn't be any, and because it could mess up time dependent routines, introducing unexpected delays. Game software often works at a low level with the hardware available, for performance reasons, avoiding over-generalized, less efficient libraries.

If these games e.g. use standard Windows message passing to communicate with that gamepad, you might be able to intercept those Windows messages. Don't expect it to be straightforward - sitting outside a process and spying on every Widows message it sends, opens a well of security holes. I wouldn't waste too much enery on it: Most likely, the game code talks directly to a harware driver that implements no hook mechanism.

Your safest bet would be to make a physical probe that senses the signal going to the gamepad. What kind of interface is used? For USB, you can find "breakout boxes" that listens to the data in and out lines: The very most primitive ones give you the physical line voltage; more fancy ones process it into digital messages. For wireless systems, e.g. Bluetooth, probes usually give you the payload of the BT frame, but don't expect any higher level protocol interpretation - these probes are essentially used by people working at the level of signal transmission, not application level protocols. Furthermore, BT traffic is frequently encrypted, which might give you trouble. Even though a USB breakout requires intercepting the cable, in may be a lot easier because the channel is nor likely to be encrypted.
AnswerRe: How to capture (read) feedback data from games in C# or C++ ( like vibration, force feedback, gunshot, explosion) Pin
Gerry Schmitz4-May-20 14:20
mveGerry Schmitz4-May-20 14:20 
QuestionSelenium Automation- C# AjaxElementLocatorFactory equivalent Pin
subinrajuu3-May-20 20:16
Membersubinrajuu3-May-20 20:16 
QuestionHow can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 9:03
Memberarnold_w2-May-20 9:03 
AnswerRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 9:25
professionalEddy Vluggen2-May-20 9:25 
JokeRe: How can I augment an array inside an .exe-file? Pin
Richard Andrew x642-May-20 10:11
professionalRichard Andrew x642-May-20 10:11 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 11:42
professionalEddy Vluggen2-May-20 11:42 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 10:41
Memberarnold_w2-May-20 10:41 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 11:43
professionalEddy Vluggen2-May-20 11:43 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 21:18
Memberarnold_w2-May-20 21:18 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 21:27
professionalEddy Vluggen2-May-20 21:27 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 21:41
Memberarnold_w2-May-20 21:41 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 21:45
professionalEddy Vluggen2-May-20 21:45 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Dave Kreskowiak3-May-20 4:27
mveDave Kreskowiak3-May-20 4:27 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen3-May-20 10:00
professionalEddy Vluggen3-May-20 10:00 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Dave Kreskowiak3-May-20 15:01
mveDave Kreskowiak3-May-20 15:01 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w3-May-20 22:23
Memberarnold_w3-May-20 22:23 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Member 79891223-May-20 23:35
MemberMember 79891223-May-20 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.