function on_key_press(int keycode) {
// called when a key is pressed. keycode holds the key's ASCII code
if (IsGamePaused() == 1) keycode=0; // game paused, so don't react to keypresses
if (keycode==359) GUIOn (1);
if (keycode==434) SaveScreenShot("scrnshot.bmp"); // F12
if (keycode==19) Debug(0,0); // Ctrl-S, give all inventory
if (keycode==22) Debug(1,0); // Ctrl-V, version
if (keycode==1) Debug(2,0); // Ctrl-A, show walkable areas
if (keycode==24) Debug(3,0); // Ctrl-X, teleport to room
}
There used to be something that said if b==1 keycode=0, but removed it and its still flashing in room 1. I cant understand why. Maybe you know.
// called when a key is pressed. keycode holds the key's ASCII code
if (IsGamePaused() == 1) keycode=0; // game paused, so don't react to keypresses
if (keycode==359) GUIOn (1);
if (keycode==434) SaveScreenShot("scrnshot.bmp"); // F12
if (keycode==19) Debug(0,0); // Ctrl-S, give all inventory
if (keycode==22) Debug(1,0); // Ctrl-V, version
if (keycode==1) Debug(2,0); // Ctrl-A, show walkable areas
if (keycode==24) Debug(3,0); // Ctrl-X, teleport to room
}
There used to be something that said if b==1 keycode=0, but removed it and its still flashing in room 1. I cant understand why. Maybe you know.