2022-01-31 16:06:54 -08:00
|
|
|
#include "aurora.hpp"
|
2022-02-06 14:53:42 -08:00
|
|
|
#include <cinttypes>
|
2022-01-31 16:06:54 -08:00
|
|
|
|
|
|
|
namespace aurora {
|
|
|
|
void App_onAppLaunched(AppDelegate& cb) noexcept;
|
|
|
|
bool App_onAppIdle(AppDelegate& cb, float dt) noexcept;
|
|
|
|
void App_onAppDraw(AppDelegate& cb) noexcept;
|
|
|
|
void App_onAppPostDraw(AppDelegate& cb) noexcept;
|
2022-02-07 17:48:08 -08:00
|
|
|
void App_onAppWindowResized(AppDelegate& cb, const WindowSize& size) noexcept;
|
|
|
|
void App_onAppWindowMoved(AppDelegate& cb, int32_t x, int32_t y) noexcept;
|
2022-01-31 16:06:54 -08:00
|
|
|
void App_onAppExiting(AppDelegate& cb) noexcept;
|
2022-02-07 02:45:56 -08:00
|
|
|
// Input
|
2022-02-13 13:32:52 -08:00
|
|
|
void App_onCharKeyDown(AppDelegate& cb, uint8_t code, std::uint16_t mods, bool isRepeat) noexcept;
|
|
|
|
void App_onCharKeyUp(AppDelegate& cb, uint8_t code, std::uint16_t mods) noexcept;
|
|
|
|
void App_onSpecialKeyDown(AppDelegate& cb, SpecialKey key, std::uint16_t mods, bool isRepeat) noexcept;
|
|
|
|
void App_onSpecialKeyUp(AppDelegate& cb, SpecialKey key, std::uint16_t mods) noexcept;
|
2022-02-07 17:48:08 -08:00
|
|
|
// Controller
|
2022-02-09 00:54:53 -08:00
|
|
|
void App_onControllerAdded(AppDelegate& cb, uint32_t which) noexcept;
|
|
|
|
void App_onControllerRemoved(AppDelegate& cb, uint32_t which) noexcept;
|
|
|
|
void App_onControllerButton(AppDelegate& cb, uint32_t which, ControllerButton button, bool pressed) noexcept;
|
|
|
|
void App_onControllerAxis(AppDelegate& cb, uint32_t which, ControllerAxis axis, int16_t value) noexcept;
|
2022-01-31 16:06:54 -08:00
|
|
|
} // namespace aurora
|