Trapping a key press

Koshling

Vorlon
Joined
Apr 11, 2011
Messages
9,254
Does anyone know (in the DLL code) how to trap a key press?

I want to add a ctrl-key to perform a reset and recalculate on the aggregated modifiers from civics, buildings, etc. as these can get distorted from the incremental approach the game uses over time, due to bugs or (where supported) asset changes mid-game.

The only thing I can't figure out is how to detect the key press in the first place, so I'm reduced to making it a game load action while ctrl is held down (yuck)
 
Back
Top Bottom