Skip to content

Commit

Permalink
Merge pull request #3 from CrabJounrnal/Returning-control
Browse files Browse the repository at this point in the history
Update HotkeyStuff.h
  • Loading branch information
CrabJournal authored May 11, 2021
2 parents 13c287c + b93dd64 commit e62f0a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion NFSUExtraOptions/HotkeyStuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ void Thing()
else
{
MakeUserCall(Player_AutoPilotOff, 1, edi, PlayerThing);
// can't use MakeUserCall because ChangeInputMode is stdcall like function as most functions in game
//MakeUserCall(SetInputMode, 2, eax, *(void**)_PlayersByIndex, esp, InputMode::IM_game);
_asm
{
mov ebx, _PlayersByIndex
mov ebx, [ebx]
mov eax, ebx
push IM_game
call SetInputMode
}
}
}
}
Expand All @@ -121,4 +131,4 @@ void Thing()
}

_asm popad;
}
}

0 comments on commit e62f0a4

Please sign in to comment.