Comments (4)
Here's what I translated:
// type INPUT struct {
// DWORD type;
// _ANONYMOUS_UNION union {
// MOUSEINPUT mi;
// KEYBDINPUT ki;
// HARDWAREINPUT hi;
// } DUMMYUNIONNAME;
// } INPUT,*PINPUT,*LPINPUT;
type INPUT struct {
Type uint32
AnonUnion interface{}
}
// typedef struct tagMOUSEINPUT {
// LONG dx;
// LONG dy;
// DWORD mouseData;
// DWORD dwFlags;
// DWORD time;
// ULONG_PTR dwExtraInfo;
// } MOUSEINPUT, *PMOUSEINPUT;
type MOUSEINPUT struct {
Dx int32
Dy int32
MouseData uint32
DwFlags uint32
Time uint32
DwExtraInfo uintptr // int?
}
// typedef struct tagKEYBDINPUT {
// WORD wVk;
// WORD wScan;
// DWORD dwFlags;
// DWORD time;
// ULONG_PTR dwExtraInfo;
// } KEYBDINPUT, *PKEYBDINPUT;
type KEYBDINPUT struct {
WVk int16
WScan int16
DwFlags uint32
Time uint32
DwExtraInfo uintptr // int?
}
// typedef struct tagHARDWAREINPUT {
// DWORD uMsg;
// WORD wParamL;
// WORD wParamH;
// } HARDWAREINPUT, *PHARDWAREINPUT;
type HARDWAREINPUT struct {
UMsg uint32
WParamL int16
WParamH int16
}
from win.
It's already there: https://github.com/lxn/win/blob/master/user32.go#L1376
from win.
Oh god, I searched but GitHub said 0 results π
Thanks Alex!
from win.
No problemo :-)
from win.
Related Issues (20)
- I found no keybd_event() method. HOT 1
- about GetModuleFileNameEx function
- Window not created but GetLast returns success HOT 1
- Windows Server 2016 WMI performance counters memory leak
- Issue with field alignment padding of the RAWMOUSE struct
- InsertMenu function does not exist.
- Provide the method to retrieve why the system call has been failed.
- ValidateRect missing
- How to get ClassName?
- Get cursor icon as bitmap, with ability to save it.
- MIDI driver
- How to write a dynamic link library fileοΌ
- is support screen shot by dxgi?
- Add a binding for sapi.h
- How to send chinese charactor to inputbox of windows?
- Add missing synchapi.h
- Add FindWindowEx HOT 2
- How do I use win.SystemParametersInfo () to get some data?
- The Non English windows will report error in this function but the performance counter work will HOT 1
- accessibility API hard crashes on 32-bit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win.