Tags
- UI/UX Engineer
- postman tests
- solidity
- postman session
- LSL_Script
- 좋은 개발자
- postman
- postman excel
- Unity
- 프런트엔드
- MFC
- C++
- Intellij
- PL/SQL
- postman pre-request
- postman collection variables
- web developer
- Android
- c#
- postman automations
- Java
- emplace_back
- postman csv
- Front-end developer
- postman collection
- Interaction developer
- postman html parse
- 우수한 프런트 개발자
- Android/iOS Developer
- oracle
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Archives
- Today
- Total
david's daily developer note
GetAsyncKeyState 본문
728x90
함수 호출되는 시점에, 특정 키가 동작중인지, 중단되었는지 여부 및 키가 눌렸는지 체크한다.
if ((GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0){
return;
}
MS 공식 예제
while (GetMessage(&msg, nullptr, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
switch (msg.message)
{
case WM_KEYDOWN:
if ((GetAsyncKeyState(VK_ESCAPE) & 0x01) && bRunning)
{
Stop();
}
break;
}
}
Virtual-Key 코드
https://learn.microsoft.com/ko-kr/windows/win32/inputdev/virtual-key-codes
Reference:
https://learn.microsoft.com/ko-kr/windows/win32/api/winuser/nf-winuser-getasynckeystate
728x90
'[Develop] Native > Native' 카테고리의 다른 글
주요 클래스간 참조 방법 (0) | 2012.03.05 |
---|---|
전역 마우스 좌표에서 특정 윈도우상의 좌표 변환 (0) | 2012.02.29 |
윈도우 최소, 최대 크기 제한 (0) | 2012.02.27 |
CAtlMap Examples (0) | 2012.02.20 |
CCmdUI 클래스 (0) | 2012.02.20 |