cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
@@ -56,7 +56,7 @@ struct Engine {
|
||||
}
|
||||
|
||||
// Create window
|
||||
Montauk::WinCreateResult wres;
|
||||
montauk::abi::WinCreateResult wres;
|
||||
if (montauk::win_create(title, w, h, &wres) < 0 || wres.id < 0)
|
||||
return false;
|
||||
|
||||
@@ -77,7 +77,7 @@ struct Engine {
|
||||
}
|
||||
|
||||
// Poll one window event. Returns true if an event was received.
|
||||
bool poll(Montauk::WinEvent* ev) {
|
||||
bool poll(montauk::abi::WinEvent* ev) {
|
||||
int r = montauk::win_poll(win_id, ev);
|
||||
if (r < 0) { running = false; return false; }
|
||||
if (r == 0) return false;
|
||||
|
||||
@@ -55,7 +55,7 @@ struct InputState {
|
||||
}
|
||||
|
||||
// Process a window event
|
||||
void handle_event(const Montauk::WinEvent& ev) {
|
||||
void handle_event(const montauk::abi::WinEvent& ev) {
|
||||
if (ev.type == 0) { // keyboard
|
||||
// PS/2 scan code set 1: release codes have bit 7 set.
|
||||
// Mask to base scancode so press and release map to the same index.
|
||||
|
||||
Reference in New Issue
Block a user