Author: | erikc |
---|---|
Mode: | factor |
Date: | Tue, 26 Jan 2010 09:58:51 |
STRUCT: RAWINPUTHEADER { dwType DWORD } { dwSize DWORD } { hDevice HANDLE } { wParam WPARAM } ; STRUCT: RAWINPUT { header RAWINPUTHEADER } { data RAWINPUT_UNION } ; : RAWINPUT_ALIGN ( x -- y ) cpu x86.32 = [ 4 ] [ 8 ] if align ; inline : NEXTRAWINPUTBLOCK ( struct -- next-struct ) dup header>> dwSize>> swap <displaced-alien> RAWINPUT_ALIGN RAWINPUT memory>struct ; inline