aboutsummaryrefslogtreecommitdiff
path: root/Source/Pad.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-08-10 22:39:31 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-08-10 22:39:31 +0200
commitf17b15bdffe45810eebc7695c10f1d7fc34af014 (patch)
tree273e3459303a063c03a84ffbc7c95415eb216364 /Source/Pad.c
parentb807ee7ca59c13bbc698595da5e56eb6dd6daa2f (diff)
downloadairport-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.c7
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++;
}