52ky 发表于 2022-11-20 16:42:02

利用HardwareButton操作Windows Mobile的硬件按钮

大家认识,在WindowsMobile的使用程序中,我们可以利用模拟按键VK来模拟一些硬件按键的功能,如调用今天屏幕、确定键盘、关闭设备、打开扬声器等等(详细可以参考黄季东的帖子:再谈WindowsMobile上的模拟按键操作)。在部分状况下,我们需要认识用户按下的是哪个硬件按钮,而且重写该硬件按钮的功能(如游戏程序)。而硬件按钮对应的是某个详细的值,我们可以使用该值来判别。在.NETCF中

(As you know, in the use program of Windows Mobile, we can use the analog key VK to simulate some hardware key functions, such as calling today's screen, determining the keyboard, turning off the device, turning on the speaker, etc. (For details, please refer to Huang Jidong's post: talk about the analog key operation on Windows Mobile again). In some cases, we need to know which hardware button the user is pressing, and rewrite the function of the hardware button (such as a game program). The hardware button corresponds to a specific value, which can be used to identify. In. NETCF)




页: [1]
查看完整版本: 利用HardwareButton操作Windows Mobile的硬件按钮