mirror of https://github.com/AxioDL/metaforce.git
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
#include "include/lib.hpp"
|
|
|
|
namespace aurora {
|
|
void App_onAppLaunched(AppDelegate& cb) noexcept { return cb.onAppLaunched(); }
|
|
bool App_onAppIdle(AppDelegate& cb, float dt) noexcept { return cb.onAppIdle(dt); }
|
|
void App_onAppDraw(AppDelegate& cb) noexcept { cb.onAppDraw(); }
|
|
void App_onAppPostDraw(AppDelegate& cb) noexcept { cb.onAppPostDraw(); }
|
|
void App_onAppWindowResized(AppDelegate& cb, const WindowSize& size) noexcept {
|
|
cb.onAppWindowResized(size);
|
|
}
|
|
void App_onAppWindowMoved(AppDelegate& cb, std::int32_t x, std::int32_t y) noexcept {
|
|
cb.onAppWindowMoved(x, y);
|
|
}
|
|
void App_onAppExiting(AppDelegate& cb) noexcept { cb.onAppExiting(); }
|
|
|
|
// Input
|
|
void App_onCharKeyDown(AppDelegate& cb, std::uint8_t code, bool is_repeat) noexcept {
|
|
cb.onCharKeyDown(code, is_repeat);
|
|
}
|
|
void App_onCharKeyUp(AppDelegate& cb, std::uint8_t code) noexcept {
|
|
cb.onCharKeyUp(code);
|
|
}
|
|
void App_onSpecialKeyDown(AppDelegate& cb, const SpecialKey& key, bool is_repeat) {
|
|
cb.onSpecialKeyDown(key, is_repeat);
|
|
}
|
|
void App_onSpecialKeyUp(AppDelegate& cb, const SpecialKey& key) {
|
|
cb.onSpecialKeyUp(key);
|
|
}
|
|
} // namespace aurora
|