• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 29, 2024, 01:49:03 PM

News:

GP Bikes beta21c available! :)


Action when key press

Started by MxWayGamer, January 17, 2023, 02:57:14 PM

Previous topic - Next topic

MxWayGamer

Hello,

I would like to display some information on the screen when the player press a specific key (a little bit like MaxHUD when you open the config menu).
I checked the example file but I didn't see a function I can use to add my trigger and test if key is pressed all X ms.

I tried to add a loop in the RunInit function but like expected, it freeze the game.

Does someone have some examples to give me ? 

MxWayGamer

I found. I have to use Draw function instead of create the loop by myself