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

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.

主站蜘蛛池模板: 伊春市| 岳池县| 雅江县| 新安县| 宁晋县| 定日县| 安阳市| 潼关县| 仙游县| 剑川县| 秦皇岛市| 剑阁县| 海宁市| 岳阳市| 山西省| 黑龙江省| 榕江县| 太仆寺旗| 翼城县| 缙云县| 平江县| 徐闻县| 宜宾县| 遵义市| 陆良县| 石棉县| 万山特区| 聂荣县| 图木舒克市| 公安县| 新干县| 福鼎市| 淮南市| 丹江口市| 黄梅县| 仙游县| 衡水市| 寻甸| 九龙县| 建昌县| 北川|