MCPcopy Create free account
hub / github.com/EasyIME/PIME / getKeyState

Method getKeyState

python/cinbase/__init__.py:2799–2800  ·  view source on GitHub ↗
(self, keyCode)

Source from the content-addressed store, hash-verified

2797 yield l[i:i+n]
2798
2799 def getKeyState(self, keyCode):
2800 return ctypes.WinDLL("User32.dll").GetKeyState(keyCode)
2801
2802 # https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getasynckeystate
2803 # 當 keyCode 對應的按鍵、曾被按下觸發過,GetAsyncKeyState() 的回傳值會 >= 1

Callers 2

initTextServiceMethod · 0.95
updateLangButtonsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected