The GetNumberOfConsoleMouseButtons function retrieves the number of buttons on the mouse used by the current console.
BOOL GetNumberOfConsoleMouseButtons(
LPDWORD lpNumberOfMouseButtons |
// address of number of buttons |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
When a console receives mouse input, an INPUT_RECORD structure containing a MOUSE_EVENT_RECORD structure is placed in the console’s input buffer. The dwButtonState member of MOUSE_EVENT_RECORD has a bit indicating the state of each mouse button. The bit is 1 if the button is down and 0 if the button is up. To determine the number of bits that are significant, use GetNumberOfConsoleMouseButtons.
ReadConsoleInput, INPUT_RECORD, MOUSE_EVENT_RECORD
file: /Techref/os/win/api/win32/func/src/f35_18.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/10 08:44,
18.190.156.214:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/os/win/api/win32/func/src/f35_18.htm"> GetNumberOfConsoleMouseButtons</A> |
Did you find what you needed? |