UNPKG

win32-def

Version:
34 lines 952 B
import * as D from '../../../lib/common.def.js'; import { genStruct } from '../struct.helper.js'; import { HARDWAREINPUT_Factory } from './HARDWAREINPUT.js'; import { KEYBDINPUT_Factory } from './KEYBDINPUT.js'; import { MOUSEINPUT_Factory } from './MOUSEINPUT.js'; const key = 'INPUT'; const ptr = `${key}*`; const init = { type: D.UINT32, u: { mi: MOUSEINPUT_Factory, ki: KEYBDINPUT_Factory, hi: HARDWAREINPUT_Factory, }, }; export const LPINPUT = ptr; export const INPUT_Name = key; export const INPUT_Init = init; /** * INPUT structure * @link https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-input */ export function INPUT_Factory() { return genStruct(init, key, ptr); } // export const INPUT = koffi.struct('INPUT', { // type: W.UINT32, // u: koffi.union({ // mi: MOUSEINPUT, // ki: KEYBDINPUT, // hi: HARDWAREINPUT, // }), // }) //# sourceMappingURL=INPUT.js.map