mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-27 07:06:28 -05:00
Pacman update (#2837)
This commit is contained in:
parent
7041d507ca
commit
60a5222058
4 changed files with 169 additions and 55 deletions
|
|
@ -23,11 +23,24 @@
|
|||
#include "pacman.hpp"
|
||||
#include <memory>
|
||||
|
||||
void notouch(int, int, uint32_t) {
|
||||
// do nothing
|
||||
}
|
||||
void nothing() {
|
||||
// do nothing
|
||||
}
|
||||
bool noencoder(int32_t) {
|
||||
return false;
|
||||
}
|
||||
bool nokeyboard(uint8_t) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const standalone_application_api_t* _api;
|
||||
|
||||
extern "C" {
|
||||
__attribute__((section(".standalone_application_information"), used)) standalone_application_information_t _standalone_application_information = {
|
||||
/*.header_version = */ 1,
|
||||
/*.header_version = */ 2,
|
||||
|
||||
/*.app_name = */ "Pac-Man",
|
||||
/*.bitmap_data = */ {
|
||||
|
|
@ -70,18 +83,17 @@ __attribute__((section(".standalone_application_information"), used)) standalone
|
|||
/*.initialize_app = */ initialize,
|
||||
/*.on_event = */ on_event,
|
||||
/*.shutdown = */ shutdown,
|
||||
/*PaintViewMirror */ NULL,
|
||||
/*OnTouchEvent */ NULL,
|
||||
/*OnFocus */ NULL,
|
||||
/*OnKeyEvent */ NULL,
|
||||
/*OnEncoder */ NULL,
|
||||
/*OnKeyboard */ NULL};
|
||||
/*PaintViewMirror */ nothing,
|
||||
/*OnTouchEvent */ notouch,
|
||||
/*OnFocus */ nothing,
|
||||
/*OnKeyEvent */ on_key_event,
|
||||
/*OnEncoder */ noencoder,
|
||||
/*OnKeyboard */ nokeyboard};
|
||||
}
|
||||
|
||||
/* Implementing abort() eliminates requirement for _getpid(), _kill(), _exit(). */
|
||||
extern "C" void abort() {
|
||||
while (true)
|
||||
;
|
||||
while (true);
|
||||
}
|
||||
|
||||
// replace memory allocations to use heap from chibios
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue