cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
@@ -129,7 +129,7 @@ These write to the kernel's text-mode console, not to a GUI window.
|
||||
|
||||
```cpp
|
||||
bool is_key_available(); // Poll for pending keystroke
|
||||
void getkey(Montauk::KeyEvent* out); // Get next keystroke (blocks)
|
||||
void getkey(montauk::abi::KeyEvent* out); // Get next keystroke (blocks)
|
||||
char getchar(); // Get single ASCII character (blocks)
|
||||
```
|
||||
|
||||
@@ -165,7 +165,7 @@ struct KeyEvent {
|
||||
### Mouse (Direct, Non-Windowed)
|
||||
|
||||
```cpp
|
||||
void mouse_state(Montauk::MouseState* out); // Get current mouse state
|
||||
void mouse_state(montauk::abi::MouseState* out); // Get current mouse state
|
||||
void set_mouse_bounds(int32_t maxX, int32_t maxY); // Set mouse boundary
|
||||
```
|
||||
|
||||
@@ -224,7 +224,7 @@ struct WinEvent {
|
||||
|
||||
```cpp
|
||||
while (true) {
|
||||
Montauk::WinEvent ev;
|
||||
montauk::abi::WinEvent ev;
|
||||
int r = montauk::win_poll(win_id, &ev);
|
||||
if (r < 0) break; // Window closed
|
||||
if (r == 0) {
|
||||
@@ -434,7 +434,7 @@ int bt_info(BtAdapterInfo* buf); // Adapter i
|
||||
```cpp
|
||||
uint64_t get_ticks(); // CPU tick counter
|
||||
uint64_t get_milliseconds(); // Milliseconds since boot
|
||||
void gettime(Montauk::DateTime* out); // Wall-clock time
|
||||
void gettime(montauk::abi::DateTime* out); // Wall-clock time
|
||||
```
|
||||
|
||||
**`DateTime` struct:**
|
||||
@@ -496,7 +496,7 @@ For launching child processes with redirected I/O (used by the terminal emulator
|
||||
int spawn_redir(const char* path, const char* args); // Spawn with I/O pipes
|
||||
int childio_read(int childPid, char* buf, int maxLen); // Read child stdout
|
||||
int childio_write(int childPid, const char* data, int len); // Write to child stdin
|
||||
int childio_writekey(int childPid, const Montauk::KeyEvent* key); // Send keystroke to child
|
||||
int childio_writekey(int childPid, const montauk::abi::KeyEvent* key); // Send keystroke to child
|
||||
int childio_settermsz(int childPid, int cols, int rows); // Set child terminal size
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user