forked from bethesirius/ChosunTruck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using PE Explorer, I found out that ETS2 does NOT use any DirectX dll's in it's import tables. It instead uses Win32 API for input (e.g. PostMessageW, SendMessageW, and keybd_event). See bethesirius#4 (comment) Now that we know that ETS2 accepts postmessage, I am removing the SendInput stuff and replacing it with PostMessage. Unfortunately it's not working in-game, but Spy++ verifies that those inputs are being sent to the game window. The simulated keys are identical to the real keys with two exceptions: cRepeat is 0 when simulated, 1 when real, and LPARAM is 0 when simulated, given another value when real. FPS is unfortunately pretty bad, can't deal with this yet until input is working. For now I'm leaving "go straight" to have no messages sent, since it would keep spamming the keydown for A and D, causing lag.
- Loading branch information
Showing
10 changed files
with
40 additions
and
109 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.