错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Getting Input from the User

  • Wallace Wang,
  • Tonnetta Walcott

摘要

All programs, such as word processors, spreadsheets, and databases, must accept input from the user. In video games, players commonly control a game object through the keyboard, mouse, joystick, or touch screen. By defining how specific keys on the keyboard function, how different buttons on a mouse or joystick work, and how to detect different types of touch gestures, you can detect user input for your game’s particular needs.