mirror of https://github.com/nmlgc/ReC98.git
30 lines
587 B
C++
30 lines
587 B
C++
#pragma option -zCSHARED
|
|
|
|
extern "C" {
|
|
#include "platform.h"
|
|
#include "master.hpp"
|
|
#include "th02/hardware/input.hpp"
|
|
#include "th02/hardware/frmdelay.h"
|
|
|
|
int key_delay_sense(void)
|
|
{
|
|
extern char key_delay_groups[3];
|
|
int ret;
|
|
ret = key_sense(key_delay_groups[0]);
|
|
ret |= key_sense(key_delay_groups[1]);
|
|
ret |= key_sense(key_delay_groups[2]);
|
|
frame_delay(2);
|
|
ret |= key_sense(key_delay_groups[0]);
|
|
ret |= key_sense(key_delay_groups[1]);
|
|
ret |= key_sense(key_delay_groups[2]);
|
|
return ret;
|
|
}
|
|
|
|
void key_delay(void)
|
|
{
|
|
while(key_delay_sense()) {}
|
|
while(!key_delay_sense()) {}
|
|
}
|
|
|
|
}
|