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/14 05:23,
3.147.126.146:LOG IN
|
©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://ecomorder.com/techref/os/win/api/win32/func/src/f35_18.htm"> GetNumberOfConsoleMouseButtons</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.