Update build script

This commit is contained in:
Miloslav Číž 2020-10-10 16:29:11 +02:00
parent b3decffc39
commit 362a05c08b
3 changed files with 6 additions and 3 deletions

2
game.h
View File

@ -67,7 +67,7 @@
#endif
#ifndef SFG_CPU_LOAD
#define SFG_CPU_LOAD(percent) ; ///< Can be redefined to check CPU load in %.
#define SFG_CPU_LOAD(percent) {} ///< Can be redefined to check CPU load in %.
#endif
/**

View File

@ -5,6 +5,8 @@
priviledges (sudo) to work! This frontend is more of an experiment, don't
expect it to work perfectly and everywhere.
Needs to be run with sudo.
by Miloslav Ciz (drummyfish), 2019
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
@ -138,7 +140,8 @@ int main()
timeStart = getTime();
devFile = open("/dev/input/event0", O_RDONLY);
devFile = open("/dev/input/event0",O_RDONLY);
// ^ replace with your specific keyboard file
fcntl(devFile, F_SETFL, O_NONBLOCK);

View File

@ -48,7 +48,7 @@ elif [ $1 == "terminal" ]; then
echo ${COMMAND}
${COMMAND} && ./game
${COMMAND} && sudo ./game
elif [ $1 == "pokitto" ]; then
# Pokitto build, requires:
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the