diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-10 22:39:31 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-10 22:39:31 +0200 |
| commit | f17b15bdffe45810eebc7695c10f1d7fc34af014 (patch) | |
| tree | 273e3459303a063c03a84ffbc7c95415eb216364 /Source/Pad.c | |
| parent | b807ee7ca59c13bbc698595da5e56eb6dd6daa2f (diff) | |
| download | airport-f17b15bdffe45810eebc7695c10f1d7fc34af014.tar.gz | |
+ System timer functions now moved to a separate source file, Timer.c/Timer.h.
* Added some more comments on Game.c.
* On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting().
Diffstat (limited to 'Source/Pad.c')
| -rw-r--r-- | Source/Pad.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Pad.c b/Source/Pad.c index 8910298..e68804b 100644 --- a/Source/Pad.c +++ b/Source/Pad.c @@ -4,6 +4,7 @@ #include "Pad.h" #include "System.h" +#include "Timer.h" /* ************************************* * Defines @@ -456,8 +457,8 @@ void PadClearData(void) void PadInit(void) { - pad1_cheat_timer = SystemCreateTimer(PAD_CHEAT_TIMEOUT,true /* Repeat flag */,&PadOneCleanCheatArray); - pad2_cheat_timer = SystemCreateTimer(PAD_CHEAT_TIMEOUT,true /* Repeat flag */,&PadTwoCleanCheatArray); + pad1_cheat_timer = TimerCreate(PAD_CHEAT_TIMEOUT,true /* Repeat flag */,&PadOneCleanCheatArray); + pad2_cheat_timer = TimerCreate(PAD_CHEAT_TIMEOUT,true /* Repeat flag */,&PadTwoCleanCheatArray); memset(cheatsArray,0, sizeof(cheatsArray)); } @@ -524,7 +525,7 @@ void PadCheatHandler(uint8_t n_pad) { if(pressed_callback(available_keys[i]) == true) { - SystemTimerRestart(timer); + TimerRestart(timer); key = available_keys[i]; keys_released++; } |
