官术网_书友最值得收藏!

Introduction

Event-driven design offers a cheap and efficient way to detect user input without the need to check for input device status in each frame. A na?ve approach to this is to query all input devices for changes in their state. There are many types of input devices such as keyboard, mouse, joystick, keypad controller, tablet, touch screen, and so on. LuaSDL relies on the library libSDL 1.2, which supports only basic input devices such as keyboard, mouse, and joystick. This version doesn't support the use of multiple devices of the same kind. This limitation has been removed with libSDL 2.x, which is used in LuaSDL 2. LuaSDL 2 is the successor of a former LuaSDL library and it's in the stage of early development at the time of writing. This chapter will cover the use of an older LuaSDL library, as the LuaSDL 2 interface is not so different.

主站蜘蛛池模板: 禄劝| 南靖县| 松潘县| 乌鲁木齐市| 突泉县| 普安县| 达拉特旗| 通城县| 通城县| 海口市| 元朗区| 新闻| 阿尔山市| 邹城市| 施秉县| 同德县| 孟连| 章丘市| 武平县| 鹤峰县| 绥江县| 桃园县| 广宗县| 呼和浩特市| 砀山县| 陆河县| 汝阳县| 南安市| 根河市| 抚顺县| 苍南县| 鸡西市| 修水县| 清河县| 钦州市| 峡江县| 布尔津县| 金川县| 右玉县| 习水县| 富阳市|