52ky 发表于 2022-11-9 14:26:04

Android研究院之游戏开发处理按键的响应(十二)源码

onKeyDown方法是KeyEvent.Callback接口中的一个笼统方法,重写onKeyDown方法可以监听到按键被按下的事情,我们先看看onKeyDown方法的函数原型。本资料共包括以下附件:

(The onKeyDown method is KeyEvent A general method in the Callback interface. Override the onKeyDown method to listen to the press of a key. Let's take a look at the function prototype of the onKeyDown method. This document includes the following annexes:)




页: [1]
查看完整版本: Android研究院之游戏开发处理按键的响应(十二)源码