我使用SdlDotNet6.1,
My SurfaceControl WinForm control (pictureBox), i don t receive key up and down events All others events (MouseDown, MouseMotion, Tick) seems working only after call Events.Run() (which lock the thread...)
WinForm事件“PreviewKeyDown”也没有被提及。
I found the SurfaceControl needs the focus to raise these events. I use mySurfaceControl.Select() on MouseMove event to force focus on it.
My problem is the keyboardDown event is not raised on every key... It raised on A-Z Escape NumLock Enter Space F1-12 Pause Home Delete. It NOT raised on Ctrl Shift Tab Return 1-9 1-9(num) arrows symbols. Alt and Alt-Gr is raised as Keys.Menu.
我的Azerty键盘(orry i m French)不是原因,
在 WinForm 事件“ PreviewKeyDown” 中检测到所有密钥, 但 WinForm 事件没有提供预览键...
所以键盘。IsKeyPressed总是返回假的,KeyPresident State总是返回323个假的,但事件是真实的。
I need detect when A-Z are pressed : OK I need detect if Ctrl/Shift/Alt is pressed : NOT OK
有什么想法吗 谢谢