mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-03 12:18:13 +03:00
28 lines
989 B
TypeScript
28 lines
989 B
TypeScript
var $: (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 {
|
|
var noInitialRun: boolean;
|
|
|
|
// Undocumented methods / attributes
|
|
var 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;
|
|
}
|