mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-27 09:23:11 +03:00
29 lines
1018 B
TypeScript
29 lines
1018 B
TypeScript
let $: (selector: string) => HTMLElement = document.querySelector.bind(document);
|
|
|
|
// xsystem35 exported functions
|
|
declare function _musfade_setvolval_all(vol: number): void;
|
|
declare function _ags_setAntialiasedStringMode(on: number): void;
|
|
declare function _sdl_rightButton(down: number): void;
|
|
declare function _ald_getdata(type: number, no: number): number;
|
|
declare function _ald_freedata(data: number): void;
|
|
|
|
declare namespace Module {
|
|
let noInitialRun: boolean;
|
|
|
|
// Undocumented methods / attributes
|
|
let canvas: HTMLElement;
|
|
function setStatus(status: string): void;
|
|
function monitorRunDependencies(left: number): void;
|
|
function callMain(): void;
|
|
function getMemory(size: number): number;
|
|
}
|
|
|
|
declare namespace FS {
|
|
function writeFile(path: string, data: ArrayBufferView | string,
|
|
opts?: {encoding?: string; flags?: string; canOwn?: boolean}): void;
|
|
}
|
|
|
|
declare namespace EmterpreterAsync {
|
|
function handle(asyncOp: (resume: () => void) => void): void;
|
|
}
|