InputLuaAPI.cpp 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490
  1. /*
  2. ** Lua binding: Input
  3. ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:50.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_Input_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "InputLuaAPI.h"
  32. #include "Input.h"
  33. #include "InputEvents.h"
  34. using namespace Urho3D;
  35. #pragma warning(disable:4800)
  36. /* function to release collected object via destructor */
  37. #ifdef __cplusplus
  38. static int tolua_collect_IntVector2 (lua_State* tolua_S)
  39. {
  40. IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
  41. Mtolua_delete(self);
  42. return 0;
  43. }
  44. #endif
  45. /* function to register type */
  46. static void tolua_reg_types (lua_State* tolua_S)
  47. {
  48. tolua_usertype(tolua_S,"String");
  49. tolua_usertype(tolua_S,"Object");
  50. tolua_usertype(tolua_S,"JoystickState");
  51. tolua_usertype(tolua_S,"Input");
  52. tolua_usertype(tolua_S,"IntVector2");
  53. tolua_usertype(tolua_S,"TouchState");
  54. }
  55. /* get function: touchID_ of class TouchState */
  56. #ifndef TOLUA_DISABLE_tolua_get_TouchState_touchID
  57. static int tolua_get_TouchState_touchID(lua_State* tolua_S)
  58. {
  59. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  60. #ifndef TOLUA_RELEASE
  61. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'touchID_'",NULL);
  62. #endif
  63. tolua_pushnumber(tolua_S,(lua_Number)self->touchID_);
  64. return 1;
  65. }
  66. #endif //#ifndef TOLUA_DISABLE
  67. /* set function: touchID_ of class TouchState */
  68. #ifndef TOLUA_DISABLE_tolua_set_TouchState_touchID
  69. static int tolua_set_TouchState_touchID(lua_State* tolua_S)
  70. {
  71. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  72. #ifndef TOLUA_RELEASE
  73. tolua_Error tolua_err;
  74. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'touchID_'",NULL);
  75. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  76. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  77. #endif
  78. self->touchID_ = ((int) tolua_tonumber(tolua_S,2,0))
  79. ;
  80. return 0;
  81. }
  82. #endif //#ifndef TOLUA_DISABLE
  83. /* get function: position_ of class TouchState */
  84. #ifndef TOLUA_DISABLE_tolua_get_TouchState_position
  85. static int tolua_get_TouchState_position(lua_State* tolua_S)
  86. {
  87. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  88. #ifndef TOLUA_RELEASE
  89. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'position_'",NULL);
  90. #endif
  91. tolua_pushusertype(tolua_S,(void*)&self->position_,"IntVector2");
  92. return 1;
  93. }
  94. #endif //#ifndef TOLUA_DISABLE
  95. /* set function: position_ of class TouchState */
  96. #ifndef TOLUA_DISABLE_tolua_set_TouchState_position
  97. static int tolua_set_TouchState_position(lua_State* tolua_S)
  98. {
  99. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  100. #ifndef TOLUA_RELEASE
  101. tolua_Error tolua_err;
  102. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'position_'",NULL);
  103. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)))
  104. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  105. #endif
  106. self->position_ = *((IntVector2*) tolua_tousertype(tolua_S,2,0))
  107. ;
  108. return 0;
  109. }
  110. #endif //#ifndef TOLUA_DISABLE
  111. /* get function: lastPosition_ of class TouchState */
  112. #ifndef TOLUA_DISABLE_tolua_get_TouchState_lastPosition
  113. static int tolua_get_TouchState_lastPosition(lua_State* tolua_S)
  114. {
  115. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  116. #ifndef TOLUA_RELEASE
  117. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lastPosition_'",NULL);
  118. #endif
  119. tolua_pushusertype(tolua_S,(void*)&self->lastPosition_,"IntVector2");
  120. return 1;
  121. }
  122. #endif //#ifndef TOLUA_DISABLE
  123. /* set function: lastPosition_ of class TouchState */
  124. #ifndef TOLUA_DISABLE_tolua_set_TouchState_lastPosition
  125. static int tolua_set_TouchState_lastPosition(lua_State* tolua_S)
  126. {
  127. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  128. #ifndef TOLUA_RELEASE
  129. tolua_Error tolua_err;
  130. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lastPosition_'",NULL);
  131. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)))
  132. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  133. #endif
  134. self->lastPosition_ = *((IntVector2*) tolua_tousertype(tolua_S,2,0))
  135. ;
  136. return 0;
  137. }
  138. #endif //#ifndef TOLUA_DISABLE
  139. /* get function: delta_ of class TouchState */
  140. #ifndef TOLUA_DISABLE_tolua_get_TouchState_delta
  141. static int tolua_get_TouchState_delta(lua_State* tolua_S)
  142. {
  143. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  144. #ifndef TOLUA_RELEASE
  145. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'delta_'",NULL);
  146. #endif
  147. tolua_pushusertype(tolua_S,(void*)&self->delta_,"IntVector2");
  148. return 1;
  149. }
  150. #endif //#ifndef TOLUA_DISABLE
  151. /* set function: delta_ of class TouchState */
  152. #ifndef TOLUA_DISABLE_tolua_set_TouchState_delta
  153. static int tolua_set_TouchState_delta(lua_State* tolua_S)
  154. {
  155. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  156. #ifndef TOLUA_RELEASE
  157. tolua_Error tolua_err;
  158. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'delta_'",NULL);
  159. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)))
  160. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  161. #endif
  162. self->delta_ = *((IntVector2*) tolua_tousertype(tolua_S,2,0))
  163. ;
  164. return 0;
  165. }
  166. #endif //#ifndef TOLUA_DISABLE
  167. /* get function: pressure_ of class TouchState */
  168. #ifndef TOLUA_DISABLE_tolua_get_TouchState_pressure
  169. static int tolua_get_TouchState_pressure(lua_State* tolua_S)
  170. {
  171. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  172. #ifndef TOLUA_RELEASE
  173. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pressure_'",NULL);
  174. #endif
  175. tolua_pushnumber(tolua_S,(lua_Number)self->pressure_);
  176. return 1;
  177. }
  178. #endif //#ifndef TOLUA_DISABLE
  179. /* set function: pressure_ of class TouchState */
  180. #ifndef TOLUA_DISABLE_tolua_set_TouchState_pressure
  181. static int tolua_set_TouchState_pressure(lua_State* tolua_S)
  182. {
  183. TouchState* self = (TouchState*) tolua_tousertype(tolua_S,1,0);
  184. #ifndef TOLUA_RELEASE
  185. tolua_Error tolua_err;
  186. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pressure_'",NULL);
  187. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  188. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  189. #endif
  190. self->pressure_ = ((float) tolua_tonumber(tolua_S,2,0))
  191. ;
  192. return 0;
  193. }
  194. #endif //#ifndef TOLUA_DISABLE
  195. /* method: GetNumButtons of class JoystickState */
  196. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetNumButtons00
  197. static int tolua_Input_JoystickState_GetNumButtons00(lua_State* tolua_S)
  198. {
  199. #ifndef TOLUA_RELEASE
  200. tolua_Error tolua_err;
  201. if (
  202. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  203. !tolua_isnoobj(tolua_S,2,&tolua_err)
  204. )
  205. goto tolua_lerror;
  206. else
  207. #endif
  208. {
  209. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  210. #ifndef TOLUA_RELEASE
  211. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumButtons'", NULL);
  212. #endif
  213. {
  214. unsigned tolua_ret = (unsigned) self->GetNumButtons();
  215. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  216. }
  217. }
  218. return 1;
  219. #ifndef TOLUA_RELEASE
  220. tolua_lerror:
  221. tolua_error(tolua_S,"#ferror in function 'GetNumButtons'.",&tolua_err);
  222. return 0;
  223. #endif
  224. }
  225. #endif //#ifndef TOLUA_DISABLE
  226. /* method: GetNumAxes of class JoystickState */
  227. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetNumAxes00
  228. static int tolua_Input_JoystickState_GetNumAxes00(lua_State* tolua_S)
  229. {
  230. #ifndef TOLUA_RELEASE
  231. tolua_Error tolua_err;
  232. if (
  233. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  234. !tolua_isnoobj(tolua_S,2,&tolua_err)
  235. )
  236. goto tolua_lerror;
  237. else
  238. #endif
  239. {
  240. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  241. #ifndef TOLUA_RELEASE
  242. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumAxes'", NULL);
  243. #endif
  244. {
  245. unsigned tolua_ret = (unsigned) self->GetNumAxes();
  246. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  247. }
  248. }
  249. return 1;
  250. #ifndef TOLUA_RELEASE
  251. tolua_lerror:
  252. tolua_error(tolua_S,"#ferror in function 'GetNumAxes'.",&tolua_err);
  253. return 0;
  254. #endif
  255. }
  256. #endif //#ifndef TOLUA_DISABLE
  257. /* method: GetNumHats of class JoystickState */
  258. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetNumHats00
  259. static int tolua_Input_JoystickState_GetNumHats00(lua_State* tolua_S)
  260. {
  261. #ifndef TOLUA_RELEASE
  262. tolua_Error tolua_err;
  263. if (
  264. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  265. !tolua_isnoobj(tolua_S,2,&tolua_err)
  266. )
  267. goto tolua_lerror;
  268. else
  269. #endif
  270. {
  271. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  272. #ifndef TOLUA_RELEASE
  273. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumHats'", NULL);
  274. #endif
  275. {
  276. unsigned tolua_ret = (unsigned) self->GetNumHats();
  277. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  278. }
  279. }
  280. return 1;
  281. #ifndef TOLUA_RELEASE
  282. tolua_lerror:
  283. tolua_error(tolua_S,"#ferror in function 'GetNumHats'.",&tolua_err);
  284. return 0;
  285. #endif
  286. }
  287. #endif //#ifndef TOLUA_DISABLE
  288. /* method: GetButtonDown of class JoystickState */
  289. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetButtonDown00
  290. static int tolua_Input_JoystickState_GetButtonDown00(lua_State* tolua_S)
  291. {
  292. #ifndef TOLUA_RELEASE
  293. tolua_Error tolua_err;
  294. if (
  295. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  296. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  297. !tolua_isnoobj(tolua_S,3,&tolua_err)
  298. )
  299. goto tolua_lerror;
  300. else
  301. #endif
  302. {
  303. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  304. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  305. #ifndef TOLUA_RELEASE
  306. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetButtonDown'", NULL);
  307. #endif
  308. {
  309. bool tolua_ret = (bool) self->GetButtonDown(index);
  310. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  311. }
  312. }
  313. return 1;
  314. #ifndef TOLUA_RELEASE
  315. tolua_lerror:
  316. tolua_error(tolua_S,"#ferror in function 'GetButtonDown'.",&tolua_err);
  317. return 0;
  318. #endif
  319. }
  320. #endif //#ifndef TOLUA_DISABLE
  321. /* method: GetButtonPress of class JoystickState */
  322. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetButtonPress00
  323. static int tolua_Input_JoystickState_GetButtonPress00(lua_State* tolua_S)
  324. {
  325. #ifndef TOLUA_RELEASE
  326. tolua_Error tolua_err;
  327. if (
  328. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  329. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  330. !tolua_isnoobj(tolua_S,3,&tolua_err)
  331. )
  332. goto tolua_lerror;
  333. else
  334. #endif
  335. {
  336. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  337. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  338. #ifndef TOLUA_RELEASE
  339. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetButtonPress'", NULL);
  340. #endif
  341. {
  342. bool tolua_ret = (bool) self->GetButtonPress(index);
  343. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  344. }
  345. }
  346. return 1;
  347. #ifndef TOLUA_RELEASE
  348. tolua_lerror:
  349. tolua_error(tolua_S,"#ferror in function 'GetButtonPress'.",&tolua_err);
  350. return 0;
  351. #endif
  352. }
  353. #endif //#ifndef TOLUA_DISABLE
  354. /* method: GetAxisPosition of class JoystickState */
  355. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetAxisPosition00
  356. static int tolua_Input_JoystickState_GetAxisPosition00(lua_State* tolua_S)
  357. {
  358. #ifndef TOLUA_RELEASE
  359. tolua_Error tolua_err;
  360. if (
  361. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  362. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  363. !tolua_isnoobj(tolua_S,3,&tolua_err)
  364. )
  365. goto tolua_lerror;
  366. else
  367. #endif
  368. {
  369. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  370. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  371. #ifndef TOLUA_RELEASE
  372. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAxisPosition'", NULL);
  373. #endif
  374. {
  375. float tolua_ret = (float) self->GetAxisPosition(index);
  376. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  377. }
  378. }
  379. return 1;
  380. #ifndef TOLUA_RELEASE
  381. tolua_lerror:
  382. tolua_error(tolua_S,"#ferror in function 'GetAxisPosition'.",&tolua_err);
  383. return 0;
  384. #endif
  385. }
  386. #endif //#ifndef TOLUA_DISABLE
  387. /* method: GetHatPosition of class JoystickState */
  388. #ifndef TOLUA_DISABLE_tolua_Input_JoystickState_GetHatPosition00
  389. static int tolua_Input_JoystickState_GetHatPosition00(lua_State* tolua_S)
  390. {
  391. #ifndef TOLUA_RELEASE
  392. tolua_Error tolua_err;
  393. if (
  394. !tolua_isusertype(tolua_S,1,"const JoystickState",0,&tolua_err) ||
  395. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  396. !tolua_isnoobj(tolua_S,3,&tolua_err)
  397. )
  398. goto tolua_lerror;
  399. else
  400. #endif
  401. {
  402. const JoystickState* self = (const JoystickState*) tolua_tousertype(tolua_S,1,0);
  403. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  404. #ifndef TOLUA_RELEASE
  405. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHatPosition'", NULL);
  406. #endif
  407. {
  408. int tolua_ret = (int) self->GetHatPosition(index);
  409. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  410. }
  411. }
  412. return 1;
  413. #ifndef TOLUA_RELEASE
  414. tolua_lerror:
  415. tolua_error(tolua_S,"#ferror in function 'GetHatPosition'.",&tolua_err);
  416. return 0;
  417. #endif
  418. }
  419. #endif //#ifndef TOLUA_DISABLE
  420. /* method: SetMouseVisible of class Input */
  421. #ifndef TOLUA_DISABLE_tolua_Input_Input_SetMouseVisible00
  422. static int tolua_Input_Input_SetMouseVisible00(lua_State* tolua_S)
  423. {
  424. #ifndef TOLUA_RELEASE
  425. tolua_Error tolua_err;
  426. if (
  427. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  428. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  429. !tolua_isnoobj(tolua_S,3,&tolua_err)
  430. )
  431. goto tolua_lerror;
  432. else
  433. #endif
  434. {
  435. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  436. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  437. #ifndef TOLUA_RELEASE
  438. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMouseVisible'", NULL);
  439. #endif
  440. {
  441. self->SetMouseVisible(enable);
  442. }
  443. }
  444. return 0;
  445. #ifndef TOLUA_RELEASE
  446. tolua_lerror:
  447. tolua_error(tolua_S,"#ferror in function 'SetMouseVisible'.",&tolua_err);
  448. return 0;
  449. #endif
  450. }
  451. #endif //#ifndef TOLUA_DISABLE
  452. /* method: OpenJoystick of class Input */
  453. #ifndef TOLUA_DISABLE_tolua_Input_Input_OpenJoystick00
  454. static int tolua_Input_Input_OpenJoystick00(lua_State* tolua_S)
  455. {
  456. #ifndef TOLUA_RELEASE
  457. tolua_Error tolua_err;
  458. if (
  459. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  460. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  461. !tolua_isnoobj(tolua_S,3,&tolua_err)
  462. )
  463. goto tolua_lerror;
  464. else
  465. #endif
  466. {
  467. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  468. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  469. #ifndef TOLUA_RELEASE
  470. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'OpenJoystick'", NULL);
  471. #endif
  472. {
  473. bool tolua_ret = (bool) self->OpenJoystick(index);
  474. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  475. }
  476. }
  477. return 1;
  478. #ifndef TOLUA_RELEASE
  479. tolua_lerror:
  480. tolua_error(tolua_S,"#ferror in function 'OpenJoystick'.",&tolua_err);
  481. return 0;
  482. #endif
  483. }
  484. #endif //#ifndef TOLUA_DISABLE
  485. /* method: CloseJoystick of class Input */
  486. #ifndef TOLUA_DISABLE_tolua_Input_Input_CloseJoystick00
  487. static int tolua_Input_Input_CloseJoystick00(lua_State* tolua_S)
  488. {
  489. #ifndef TOLUA_RELEASE
  490. tolua_Error tolua_err;
  491. if (
  492. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  493. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  494. !tolua_isnoobj(tolua_S,3,&tolua_err)
  495. )
  496. goto tolua_lerror;
  497. else
  498. #endif
  499. {
  500. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  501. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  502. #ifndef TOLUA_RELEASE
  503. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CloseJoystick'", NULL);
  504. #endif
  505. {
  506. self->CloseJoystick(index);
  507. }
  508. }
  509. return 0;
  510. #ifndef TOLUA_RELEASE
  511. tolua_lerror:
  512. tolua_error(tolua_S,"#ferror in function 'CloseJoystick'.",&tolua_err);
  513. return 0;
  514. #endif
  515. }
  516. #endif //#ifndef TOLUA_DISABLE
  517. /* method: DetectJoysticks of class Input */
  518. #ifndef TOLUA_DISABLE_tolua_Input_Input_DetectJoysticks00
  519. static int tolua_Input_Input_DetectJoysticks00(lua_State* tolua_S)
  520. {
  521. #ifndef TOLUA_RELEASE
  522. tolua_Error tolua_err;
  523. if (
  524. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  525. !tolua_isnoobj(tolua_S,2,&tolua_err)
  526. )
  527. goto tolua_lerror;
  528. else
  529. #endif
  530. {
  531. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  532. #ifndef TOLUA_RELEASE
  533. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DetectJoysticks'", NULL);
  534. #endif
  535. {
  536. bool tolua_ret = (bool) self->DetectJoysticks();
  537. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  538. }
  539. }
  540. return 1;
  541. #ifndef TOLUA_RELEASE
  542. tolua_lerror:
  543. tolua_error(tolua_S,"#ferror in function 'DetectJoysticks'.",&tolua_err);
  544. return 0;
  545. #endif
  546. }
  547. #endif //#ifndef TOLUA_DISABLE
  548. /* method: GetKeyDown of class Input */
  549. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetKeyDown00
  550. static int tolua_Input_Input_GetKeyDown00(lua_State* tolua_S)
  551. {
  552. #ifndef TOLUA_RELEASE
  553. tolua_Error tolua_err;
  554. if (
  555. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  556. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  557. !tolua_isnoobj(tolua_S,3,&tolua_err)
  558. )
  559. goto tolua_lerror;
  560. else
  561. #endif
  562. {
  563. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  564. int key = ((int) tolua_tonumber(tolua_S,2,0));
  565. #ifndef TOLUA_RELEASE
  566. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetKeyDown'", NULL);
  567. #endif
  568. {
  569. bool tolua_ret = (bool) self->GetKeyDown(key);
  570. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  571. }
  572. }
  573. return 1;
  574. #ifndef TOLUA_RELEASE
  575. tolua_lerror:
  576. tolua_error(tolua_S,"#ferror in function 'GetKeyDown'.",&tolua_err);
  577. return 0;
  578. #endif
  579. }
  580. #endif //#ifndef TOLUA_DISABLE
  581. /* method: GetKeyPress of class Input */
  582. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetKeyPress00
  583. static int tolua_Input_Input_GetKeyPress00(lua_State* tolua_S)
  584. {
  585. #ifndef TOLUA_RELEASE
  586. tolua_Error tolua_err;
  587. if (
  588. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  589. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  590. !tolua_isnoobj(tolua_S,3,&tolua_err)
  591. )
  592. goto tolua_lerror;
  593. else
  594. #endif
  595. {
  596. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  597. int key = ((int) tolua_tonumber(tolua_S,2,0));
  598. #ifndef TOLUA_RELEASE
  599. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetKeyPress'", NULL);
  600. #endif
  601. {
  602. bool tolua_ret = (bool) self->GetKeyPress(key);
  603. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  604. }
  605. }
  606. return 1;
  607. #ifndef TOLUA_RELEASE
  608. tolua_lerror:
  609. tolua_error(tolua_S,"#ferror in function 'GetKeyPress'.",&tolua_err);
  610. return 0;
  611. #endif
  612. }
  613. #endif //#ifndef TOLUA_DISABLE
  614. /* method: GetMouseButtonDown of class Input */
  615. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseButtonDown00
  616. static int tolua_Input_Input_GetMouseButtonDown00(lua_State* tolua_S)
  617. {
  618. #ifndef TOLUA_RELEASE
  619. tolua_Error tolua_err;
  620. if (
  621. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  622. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  623. !tolua_isnoobj(tolua_S,3,&tolua_err)
  624. )
  625. goto tolua_lerror;
  626. else
  627. #endif
  628. {
  629. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  630. int button = ((int) tolua_tonumber(tolua_S,2,0));
  631. #ifndef TOLUA_RELEASE
  632. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseButtonDown'", NULL);
  633. #endif
  634. {
  635. bool tolua_ret = (bool) self->GetMouseButtonDown(button);
  636. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  637. }
  638. }
  639. return 1;
  640. #ifndef TOLUA_RELEASE
  641. tolua_lerror:
  642. tolua_error(tolua_S,"#ferror in function 'GetMouseButtonDown'.",&tolua_err);
  643. return 0;
  644. #endif
  645. }
  646. #endif //#ifndef TOLUA_DISABLE
  647. /* method: GetMouseButtonPress of class Input */
  648. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseButtonPress00
  649. static int tolua_Input_Input_GetMouseButtonPress00(lua_State* tolua_S)
  650. {
  651. #ifndef TOLUA_RELEASE
  652. tolua_Error tolua_err;
  653. if (
  654. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  655. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  656. !tolua_isnoobj(tolua_S,3,&tolua_err)
  657. )
  658. goto tolua_lerror;
  659. else
  660. #endif
  661. {
  662. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  663. int button = ((int) tolua_tonumber(tolua_S,2,0));
  664. #ifndef TOLUA_RELEASE
  665. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseButtonPress'", NULL);
  666. #endif
  667. {
  668. bool tolua_ret = (bool) self->GetMouseButtonPress(button);
  669. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  670. }
  671. }
  672. return 1;
  673. #ifndef TOLUA_RELEASE
  674. tolua_lerror:
  675. tolua_error(tolua_S,"#ferror in function 'GetMouseButtonPress'.",&tolua_err);
  676. return 0;
  677. #endif
  678. }
  679. #endif //#ifndef TOLUA_DISABLE
  680. /* method: GetQualifierDown of class Input */
  681. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetQualifierDown00
  682. static int tolua_Input_Input_GetQualifierDown00(lua_State* tolua_S)
  683. {
  684. #ifndef TOLUA_RELEASE
  685. tolua_Error tolua_err;
  686. if (
  687. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  688. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  689. !tolua_isnoobj(tolua_S,3,&tolua_err)
  690. )
  691. goto tolua_lerror;
  692. else
  693. #endif
  694. {
  695. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  696. int qualifier = ((int) tolua_tonumber(tolua_S,2,0));
  697. #ifndef TOLUA_RELEASE
  698. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQualifierDown'", NULL);
  699. #endif
  700. {
  701. bool tolua_ret = (bool) self->GetQualifierDown(qualifier);
  702. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  703. }
  704. }
  705. return 1;
  706. #ifndef TOLUA_RELEASE
  707. tolua_lerror:
  708. tolua_error(tolua_S,"#ferror in function 'GetQualifierDown'.",&tolua_err);
  709. return 0;
  710. #endif
  711. }
  712. #endif //#ifndef TOLUA_DISABLE
  713. /* method: GetQualifierPress of class Input */
  714. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetQualifierPress00
  715. static int tolua_Input_Input_GetQualifierPress00(lua_State* tolua_S)
  716. {
  717. #ifndef TOLUA_RELEASE
  718. tolua_Error tolua_err;
  719. if (
  720. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  721. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  722. !tolua_isnoobj(tolua_S,3,&tolua_err)
  723. )
  724. goto tolua_lerror;
  725. else
  726. #endif
  727. {
  728. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  729. int qualifier = ((int) tolua_tonumber(tolua_S,2,0));
  730. #ifndef TOLUA_RELEASE
  731. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQualifierPress'", NULL);
  732. #endif
  733. {
  734. bool tolua_ret = (bool) self->GetQualifierPress(qualifier);
  735. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  736. }
  737. }
  738. return 1;
  739. #ifndef TOLUA_RELEASE
  740. tolua_lerror:
  741. tolua_error(tolua_S,"#ferror in function 'GetQualifierPress'.",&tolua_err);
  742. return 0;
  743. #endif
  744. }
  745. #endif //#ifndef TOLUA_DISABLE
  746. /* method: GetQualifiers of class Input */
  747. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetQualifiers00
  748. static int tolua_Input_Input_GetQualifiers00(lua_State* tolua_S)
  749. {
  750. #ifndef TOLUA_RELEASE
  751. tolua_Error tolua_err;
  752. if (
  753. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  754. !tolua_isnoobj(tolua_S,2,&tolua_err)
  755. )
  756. goto tolua_lerror;
  757. else
  758. #endif
  759. {
  760. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  761. #ifndef TOLUA_RELEASE
  762. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQualifiers'", NULL);
  763. #endif
  764. {
  765. int tolua_ret = (int) self->GetQualifiers();
  766. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  767. }
  768. }
  769. return 1;
  770. #ifndef TOLUA_RELEASE
  771. tolua_lerror:
  772. tolua_error(tolua_S,"#ferror in function 'GetQualifiers'.",&tolua_err);
  773. return 0;
  774. #endif
  775. }
  776. #endif //#ifndef TOLUA_DISABLE
  777. /* method: GetMousePosition of class Input */
  778. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMousePosition00
  779. static int tolua_Input_Input_GetMousePosition00(lua_State* tolua_S)
  780. {
  781. #ifndef TOLUA_RELEASE
  782. tolua_Error tolua_err;
  783. if (
  784. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  785. !tolua_isnoobj(tolua_S,2,&tolua_err)
  786. )
  787. goto tolua_lerror;
  788. else
  789. #endif
  790. {
  791. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  792. #ifndef TOLUA_RELEASE
  793. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMousePosition'", NULL);
  794. #endif
  795. {
  796. IntVector2 tolua_ret = (IntVector2) self->GetMousePosition();
  797. {
  798. #ifdef __cplusplus
  799. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  800. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  801. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  802. #else
  803. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  804. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  805. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  806. #endif
  807. }
  808. }
  809. }
  810. return 1;
  811. #ifndef TOLUA_RELEASE
  812. tolua_lerror:
  813. tolua_error(tolua_S,"#ferror in function 'GetMousePosition'.",&tolua_err);
  814. return 0;
  815. #endif
  816. }
  817. #endif //#ifndef TOLUA_DISABLE
  818. /* method: GetMouseMove of class Input */
  819. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseMove00
  820. static int tolua_Input_Input_GetMouseMove00(lua_State* tolua_S)
  821. {
  822. #ifndef TOLUA_RELEASE
  823. tolua_Error tolua_err;
  824. if (
  825. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  826. !tolua_isnoobj(tolua_S,2,&tolua_err)
  827. )
  828. goto tolua_lerror;
  829. else
  830. #endif
  831. {
  832. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  833. #ifndef TOLUA_RELEASE
  834. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseMove'", NULL);
  835. #endif
  836. {
  837. const IntVector2& tolua_ret = (const IntVector2&) self->GetMouseMove();
  838. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  839. }
  840. }
  841. return 1;
  842. #ifndef TOLUA_RELEASE
  843. tolua_lerror:
  844. tolua_error(tolua_S,"#ferror in function 'GetMouseMove'.",&tolua_err);
  845. return 0;
  846. #endif
  847. }
  848. #endif //#ifndef TOLUA_DISABLE
  849. /* method: GetMouseMoveX of class Input */
  850. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseMoveX00
  851. static int tolua_Input_Input_GetMouseMoveX00(lua_State* tolua_S)
  852. {
  853. #ifndef TOLUA_RELEASE
  854. tolua_Error tolua_err;
  855. if (
  856. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  857. !tolua_isnoobj(tolua_S,2,&tolua_err)
  858. )
  859. goto tolua_lerror;
  860. else
  861. #endif
  862. {
  863. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  864. #ifndef TOLUA_RELEASE
  865. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseMoveX'", NULL);
  866. #endif
  867. {
  868. int tolua_ret = (int) self->GetMouseMoveX();
  869. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  870. }
  871. }
  872. return 1;
  873. #ifndef TOLUA_RELEASE
  874. tolua_lerror:
  875. tolua_error(tolua_S,"#ferror in function 'GetMouseMoveX'.",&tolua_err);
  876. return 0;
  877. #endif
  878. }
  879. #endif //#ifndef TOLUA_DISABLE
  880. /* method: GetMouseMoveY of class Input */
  881. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseMoveY00
  882. static int tolua_Input_Input_GetMouseMoveY00(lua_State* tolua_S)
  883. {
  884. #ifndef TOLUA_RELEASE
  885. tolua_Error tolua_err;
  886. if (
  887. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  888. !tolua_isnoobj(tolua_S,2,&tolua_err)
  889. )
  890. goto tolua_lerror;
  891. else
  892. #endif
  893. {
  894. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  895. #ifndef TOLUA_RELEASE
  896. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseMoveY'", NULL);
  897. #endif
  898. {
  899. int tolua_ret = (int) self->GetMouseMoveY();
  900. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  901. }
  902. }
  903. return 1;
  904. #ifndef TOLUA_RELEASE
  905. tolua_lerror:
  906. tolua_error(tolua_S,"#ferror in function 'GetMouseMoveY'.",&tolua_err);
  907. return 0;
  908. #endif
  909. }
  910. #endif //#ifndef TOLUA_DISABLE
  911. /* method: GetMouseMoveWheel of class Input */
  912. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetMouseMoveWheel00
  913. static int tolua_Input_Input_GetMouseMoveWheel00(lua_State* tolua_S)
  914. {
  915. #ifndef TOLUA_RELEASE
  916. tolua_Error tolua_err;
  917. if (
  918. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  919. !tolua_isnoobj(tolua_S,2,&tolua_err)
  920. )
  921. goto tolua_lerror;
  922. else
  923. #endif
  924. {
  925. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  926. #ifndef TOLUA_RELEASE
  927. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMouseMoveWheel'", NULL);
  928. #endif
  929. {
  930. int tolua_ret = (int) self->GetMouseMoveWheel();
  931. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  932. }
  933. }
  934. return 1;
  935. #ifndef TOLUA_RELEASE
  936. tolua_lerror:
  937. tolua_error(tolua_S,"#ferror in function 'GetMouseMoveWheel'.",&tolua_err);
  938. return 0;
  939. #endif
  940. }
  941. #endif //#ifndef TOLUA_DISABLE
  942. /* method: GetNumTouches of class Input */
  943. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetNumTouches00
  944. static int tolua_Input_Input_GetNumTouches00(lua_State* tolua_S)
  945. {
  946. #ifndef TOLUA_RELEASE
  947. tolua_Error tolua_err;
  948. if (
  949. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  950. !tolua_isnoobj(tolua_S,2,&tolua_err)
  951. )
  952. goto tolua_lerror;
  953. else
  954. #endif
  955. {
  956. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  957. #ifndef TOLUA_RELEASE
  958. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTouches'", NULL);
  959. #endif
  960. {
  961. unsigned tolua_ret = (unsigned) self->GetNumTouches();
  962. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  963. }
  964. }
  965. return 1;
  966. #ifndef TOLUA_RELEASE
  967. tolua_lerror:
  968. tolua_error(tolua_S,"#ferror in function 'GetNumTouches'.",&tolua_err);
  969. return 0;
  970. #endif
  971. }
  972. #endif //#ifndef TOLUA_DISABLE
  973. /* method: GetTouch of class Input */
  974. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetTouch00
  975. static int tolua_Input_Input_GetTouch00(lua_State* tolua_S)
  976. {
  977. #ifndef TOLUA_RELEASE
  978. tolua_Error tolua_err;
  979. if (
  980. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  981. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  982. !tolua_isnoobj(tolua_S,3,&tolua_err)
  983. )
  984. goto tolua_lerror;
  985. else
  986. #endif
  987. {
  988. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  989. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  990. #ifndef TOLUA_RELEASE
  991. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTouch'", NULL);
  992. #endif
  993. {
  994. TouchState* tolua_ret = (TouchState*) self->GetTouch(index);
  995. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TouchState");
  996. }
  997. }
  998. return 1;
  999. #ifndef TOLUA_RELEASE
  1000. tolua_lerror:
  1001. tolua_error(tolua_S,"#ferror in function 'GetTouch'.",&tolua_err);
  1002. return 0;
  1003. #endif
  1004. }
  1005. #endif //#ifndef TOLUA_DISABLE
  1006. /* method: GetNumJoysticks of class Input */
  1007. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetNumJoysticks00
  1008. static int tolua_Input_Input_GetNumJoysticks00(lua_State* tolua_S)
  1009. {
  1010. #ifndef TOLUA_RELEASE
  1011. tolua_Error tolua_err;
  1012. if (
  1013. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  1014. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1015. )
  1016. goto tolua_lerror;
  1017. else
  1018. #endif
  1019. {
  1020. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  1021. #ifndef TOLUA_RELEASE
  1022. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumJoysticks'", NULL);
  1023. #endif
  1024. {
  1025. unsigned tolua_ret = (unsigned) self->GetNumJoysticks();
  1026. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1027. }
  1028. }
  1029. return 1;
  1030. #ifndef TOLUA_RELEASE
  1031. tolua_lerror:
  1032. tolua_error(tolua_S,"#ferror in function 'GetNumJoysticks'.",&tolua_err);
  1033. return 0;
  1034. #endif
  1035. }
  1036. #endif //#ifndef TOLUA_DISABLE
  1037. /* method: GetJoystickName of class Input */
  1038. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetJoystickName00
  1039. static int tolua_Input_Input_GetJoystickName00(lua_State* tolua_S)
  1040. {
  1041. #ifndef TOLUA_RELEASE
  1042. tolua_Error tolua_err;
  1043. if (
  1044. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  1045. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1046. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1047. )
  1048. goto tolua_lerror;
  1049. else
  1050. #endif
  1051. {
  1052. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  1053. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1054. #ifndef TOLUA_RELEASE
  1055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetJoystickName'", NULL);
  1056. #endif
  1057. {
  1058. const String& tolua_ret = (const String&) self->GetJoystickName(index);
  1059. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1060. }
  1061. }
  1062. return 1;
  1063. #ifndef TOLUA_RELEASE
  1064. tolua_lerror:
  1065. tolua_error(tolua_S,"#ferror in function 'GetJoystickName'.",&tolua_err);
  1066. return 0;
  1067. #endif
  1068. }
  1069. #endif //#ifndef TOLUA_DISABLE
  1070. /* method: GetJoystick of class Input */
  1071. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetJoystick00
  1072. static int tolua_Input_Input_GetJoystick00(lua_State* tolua_S)
  1073. {
  1074. #ifndef TOLUA_RELEASE
  1075. tolua_Error tolua_err;
  1076. if (
  1077. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  1078. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1079. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1080. )
  1081. goto tolua_lerror;
  1082. else
  1083. #endif
  1084. {
  1085. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  1086. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1087. #ifndef TOLUA_RELEASE
  1088. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetJoystick'", NULL);
  1089. #endif
  1090. {
  1091. JoystickState* tolua_ret = (JoystickState*) self->GetJoystick(index);
  1092. tolua_pushusertype(tolua_S,(void*)tolua_ret,"JoystickState");
  1093. }
  1094. }
  1095. return 1;
  1096. #ifndef TOLUA_RELEASE
  1097. tolua_lerror:
  1098. tolua_error(tolua_S,"#ferror in function 'GetJoystick'.",&tolua_err);
  1099. return 0;
  1100. #endif
  1101. }
  1102. #endif //#ifndef TOLUA_DISABLE
  1103. /* method: GetToggleFullscreen of class Input */
  1104. #ifndef TOLUA_DISABLE_tolua_Input_Input_GetToggleFullscreen00
  1105. static int tolua_Input_Input_GetToggleFullscreen00(lua_State* tolua_S)
  1106. {
  1107. #ifndef TOLUA_RELEASE
  1108. tolua_Error tolua_err;
  1109. if (
  1110. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  1111. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1112. )
  1113. goto tolua_lerror;
  1114. else
  1115. #endif
  1116. {
  1117. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  1118. #ifndef TOLUA_RELEASE
  1119. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetToggleFullscreen'", NULL);
  1120. #endif
  1121. {
  1122. bool tolua_ret = (bool) self->GetToggleFullscreen();
  1123. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1124. }
  1125. }
  1126. return 1;
  1127. #ifndef TOLUA_RELEASE
  1128. tolua_lerror:
  1129. tolua_error(tolua_S,"#ferror in function 'GetToggleFullscreen'.",&tolua_err);
  1130. return 0;
  1131. #endif
  1132. }
  1133. #endif //#ifndef TOLUA_DISABLE
  1134. /* method: IsMouseVisible of class Input */
  1135. #ifndef TOLUA_DISABLE_tolua_Input_Input_IsMouseVisible00
  1136. static int tolua_Input_Input_IsMouseVisible00(lua_State* tolua_S)
  1137. {
  1138. #ifndef TOLUA_RELEASE
  1139. tolua_Error tolua_err;
  1140. if (
  1141. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  1142. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1143. )
  1144. goto tolua_lerror;
  1145. else
  1146. #endif
  1147. {
  1148. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  1149. #ifndef TOLUA_RELEASE
  1150. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMouseVisible'", NULL);
  1151. #endif
  1152. {
  1153. bool tolua_ret = (bool) self->IsMouseVisible();
  1154. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1155. }
  1156. }
  1157. return 1;
  1158. #ifndef TOLUA_RELEASE
  1159. tolua_lerror:
  1160. tolua_error(tolua_S,"#ferror in function 'IsMouseVisible'.",&tolua_err);
  1161. return 0;
  1162. #endif
  1163. }
  1164. #endif //#ifndef TOLUA_DISABLE
  1165. /* method: HasFocus of class Input */
  1166. #ifndef TOLUA_DISABLE_tolua_Input_Input_HasFocus00
  1167. static int tolua_Input_Input_HasFocus00(lua_State* tolua_S)
  1168. {
  1169. #ifndef TOLUA_RELEASE
  1170. tolua_Error tolua_err;
  1171. if (
  1172. !tolua_isusertype(tolua_S,1,"Input",0,&tolua_err) ||
  1173. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1174. )
  1175. goto tolua_lerror;
  1176. else
  1177. #endif
  1178. {
  1179. Input* self = (Input*) tolua_tousertype(tolua_S,1,0);
  1180. #ifndef TOLUA_RELEASE
  1181. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasFocus'", NULL);
  1182. #endif
  1183. {
  1184. bool tolua_ret = (bool) self->HasFocus();
  1185. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1186. }
  1187. }
  1188. return 1;
  1189. #ifndef TOLUA_RELEASE
  1190. tolua_lerror:
  1191. tolua_error(tolua_S,"#ferror in function 'HasFocus'.",&tolua_err);
  1192. return 0;
  1193. #endif
  1194. }
  1195. #endif //#ifndef TOLUA_DISABLE
  1196. /* method: IsMinimized of class Input */
  1197. #ifndef TOLUA_DISABLE_tolua_Input_Input_IsMinimized00
  1198. static int tolua_Input_Input_IsMinimized00(lua_State* tolua_S)
  1199. {
  1200. #ifndef TOLUA_RELEASE
  1201. tolua_Error tolua_err;
  1202. if (
  1203. !tolua_isusertype(tolua_S,1,"const Input",0,&tolua_err) ||
  1204. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1205. )
  1206. goto tolua_lerror;
  1207. else
  1208. #endif
  1209. {
  1210. const Input* self = (const Input*) tolua_tousertype(tolua_S,1,0);
  1211. #ifndef TOLUA_RELEASE
  1212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMinimized'", NULL);
  1213. #endif
  1214. {
  1215. bool tolua_ret = (bool) self->IsMinimized();
  1216. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1217. }
  1218. }
  1219. return 1;
  1220. #ifndef TOLUA_RELEASE
  1221. tolua_lerror:
  1222. tolua_error(tolua_S,"#ferror in function 'IsMinimized'.",&tolua_err);
  1223. return 0;
  1224. #endif
  1225. }
  1226. #endif //#ifndef TOLUA_DISABLE
  1227. /* function: GetInput */
  1228. #ifndef TOLUA_DISABLE_tolua_Input_GetInput00
  1229. static int tolua_Input_GetInput00(lua_State* tolua_S)
  1230. {
  1231. #ifndef TOLUA_RELEASE
  1232. tolua_Error tolua_err;
  1233. if (
  1234. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1235. )
  1236. goto tolua_lerror;
  1237. else
  1238. #endif
  1239. {
  1240. {
  1241. Input* tolua_ret = (Input*) GetInput();
  1242. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Input");
  1243. }
  1244. }
  1245. return 1;
  1246. #ifndef TOLUA_RELEASE
  1247. tolua_lerror:
  1248. tolua_error(tolua_S,"#ferror in function 'GetInput'.",&tolua_err);
  1249. return 0;
  1250. #endif
  1251. }
  1252. #endif //#ifndef TOLUA_DISABLE
  1253. /* get function: MOUSEB_LEFT */
  1254. #ifndef TOLUA_DISABLE_tolua_get_MOUSEB_LEFT
  1255. static int tolua_get_MOUSEB_LEFT(lua_State* tolua_S)
  1256. {
  1257. tolua_pushnumber(tolua_S,(lua_Number)MOUSEB_LEFT);
  1258. return 1;
  1259. }
  1260. #endif //#ifndef TOLUA_DISABLE
  1261. /* get function: MOUSEB_MIDDLE */
  1262. #ifndef TOLUA_DISABLE_tolua_get_MOUSEB_MIDDLE
  1263. static int tolua_get_MOUSEB_MIDDLE(lua_State* tolua_S)
  1264. {
  1265. tolua_pushnumber(tolua_S,(lua_Number)MOUSEB_MIDDLE);
  1266. return 1;
  1267. }
  1268. #endif //#ifndef TOLUA_DISABLE
  1269. /* get function: MOUSEB_RIGHT */
  1270. #ifndef TOLUA_DISABLE_tolua_get_MOUSEB_RIGHT
  1271. static int tolua_get_MOUSEB_RIGHT(lua_State* tolua_S)
  1272. {
  1273. tolua_pushnumber(tolua_S,(lua_Number)MOUSEB_RIGHT);
  1274. return 1;
  1275. }
  1276. #endif //#ifndef TOLUA_DISABLE
  1277. /* get function: QUAL_SHIFT */
  1278. #ifndef TOLUA_DISABLE_tolua_get_QUAL_SHIFT
  1279. static int tolua_get_QUAL_SHIFT(lua_State* tolua_S)
  1280. {
  1281. tolua_pushnumber(tolua_S,(lua_Number)QUAL_SHIFT);
  1282. return 1;
  1283. }
  1284. #endif //#ifndef TOLUA_DISABLE
  1285. /* get function: QUAL_CTRL */
  1286. #ifndef TOLUA_DISABLE_tolua_get_QUAL_CTRL
  1287. static int tolua_get_QUAL_CTRL(lua_State* tolua_S)
  1288. {
  1289. tolua_pushnumber(tolua_S,(lua_Number)QUAL_CTRL);
  1290. return 1;
  1291. }
  1292. #endif //#ifndef TOLUA_DISABLE
  1293. /* get function: QUAL_ALT */
  1294. #ifndef TOLUA_DISABLE_tolua_get_QUAL_ALT
  1295. static int tolua_get_QUAL_ALT(lua_State* tolua_S)
  1296. {
  1297. tolua_pushnumber(tolua_S,(lua_Number)QUAL_ALT);
  1298. return 1;
  1299. }
  1300. #endif //#ifndef TOLUA_DISABLE
  1301. /* get function: QUAL_ANY */
  1302. #ifndef TOLUA_DISABLE_tolua_get_QUAL_ANY
  1303. static int tolua_get_QUAL_ANY(lua_State* tolua_S)
  1304. {
  1305. tolua_pushnumber(tolua_S,(lua_Number)QUAL_ANY);
  1306. return 1;
  1307. }
  1308. #endif //#ifndef TOLUA_DISABLE
  1309. /* get function: KEY_A */
  1310. #ifndef TOLUA_DISABLE_tolua_get_KEY_A
  1311. static int tolua_get_KEY_A(lua_State* tolua_S)
  1312. {
  1313. tolua_pushnumber(tolua_S,(lua_Number)KEY_A);
  1314. return 1;
  1315. }
  1316. #endif //#ifndef TOLUA_DISABLE
  1317. /* get function: KEY_B */
  1318. #ifndef TOLUA_DISABLE_tolua_get_KEY_B
  1319. static int tolua_get_KEY_B(lua_State* tolua_S)
  1320. {
  1321. tolua_pushnumber(tolua_S,(lua_Number)KEY_B);
  1322. return 1;
  1323. }
  1324. #endif //#ifndef TOLUA_DISABLE
  1325. /* get function: KEY_C */
  1326. #ifndef TOLUA_DISABLE_tolua_get_KEY_C
  1327. static int tolua_get_KEY_C(lua_State* tolua_S)
  1328. {
  1329. tolua_pushnumber(tolua_S,(lua_Number)KEY_C);
  1330. return 1;
  1331. }
  1332. #endif //#ifndef TOLUA_DISABLE
  1333. /* get function: KEY_D */
  1334. #ifndef TOLUA_DISABLE_tolua_get_KEY_D
  1335. static int tolua_get_KEY_D(lua_State* tolua_S)
  1336. {
  1337. tolua_pushnumber(tolua_S,(lua_Number)KEY_D);
  1338. return 1;
  1339. }
  1340. #endif //#ifndef TOLUA_DISABLE
  1341. /* get function: KEY_E */
  1342. #ifndef TOLUA_DISABLE_tolua_get_KEY_E
  1343. static int tolua_get_KEY_E(lua_State* tolua_S)
  1344. {
  1345. tolua_pushnumber(tolua_S,(lua_Number)KEY_E);
  1346. return 1;
  1347. }
  1348. #endif //#ifndef TOLUA_DISABLE
  1349. /* get function: KEY_F */
  1350. #ifndef TOLUA_DISABLE_tolua_get_KEY_F
  1351. static int tolua_get_KEY_F(lua_State* tolua_S)
  1352. {
  1353. tolua_pushnumber(tolua_S,(lua_Number)KEY_F);
  1354. return 1;
  1355. }
  1356. #endif //#ifndef TOLUA_DISABLE
  1357. /* get function: KEY_G */
  1358. #ifndef TOLUA_DISABLE_tolua_get_KEY_G
  1359. static int tolua_get_KEY_G(lua_State* tolua_S)
  1360. {
  1361. tolua_pushnumber(tolua_S,(lua_Number)KEY_G);
  1362. return 1;
  1363. }
  1364. #endif //#ifndef TOLUA_DISABLE
  1365. /* get function: KEY_H */
  1366. #ifndef TOLUA_DISABLE_tolua_get_KEY_H
  1367. static int tolua_get_KEY_H(lua_State* tolua_S)
  1368. {
  1369. tolua_pushnumber(tolua_S,(lua_Number)KEY_H);
  1370. return 1;
  1371. }
  1372. #endif //#ifndef TOLUA_DISABLE
  1373. /* get function: KEY_I */
  1374. #ifndef TOLUA_DISABLE_tolua_get_KEY_I
  1375. static int tolua_get_KEY_I(lua_State* tolua_S)
  1376. {
  1377. tolua_pushnumber(tolua_S,(lua_Number)KEY_I);
  1378. return 1;
  1379. }
  1380. #endif //#ifndef TOLUA_DISABLE
  1381. /* get function: KEY_J */
  1382. #ifndef TOLUA_DISABLE_tolua_get_KEY_J
  1383. static int tolua_get_KEY_J(lua_State* tolua_S)
  1384. {
  1385. tolua_pushnumber(tolua_S,(lua_Number)KEY_J);
  1386. return 1;
  1387. }
  1388. #endif //#ifndef TOLUA_DISABLE
  1389. /* get function: KEY_K */
  1390. #ifndef TOLUA_DISABLE_tolua_get_KEY_K
  1391. static int tolua_get_KEY_K(lua_State* tolua_S)
  1392. {
  1393. tolua_pushnumber(tolua_S,(lua_Number)KEY_K);
  1394. return 1;
  1395. }
  1396. #endif //#ifndef TOLUA_DISABLE
  1397. /* get function: KEY_L */
  1398. #ifndef TOLUA_DISABLE_tolua_get_KEY_L
  1399. static int tolua_get_KEY_L(lua_State* tolua_S)
  1400. {
  1401. tolua_pushnumber(tolua_S,(lua_Number)KEY_L);
  1402. return 1;
  1403. }
  1404. #endif //#ifndef TOLUA_DISABLE
  1405. /* get function: KEY_M */
  1406. #ifndef TOLUA_DISABLE_tolua_get_KEY_M
  1407. static int tolua_get_KEY_M(lua_State* tolua_S)
  1408. {
  1409. tolua_pushnumber(tolua_S,(lua_Number)KEY_M);
  1410. return 1;
  1411. }
  1412. #endif //#ifndef TOLUA_DISABLE
  1413. /* get function: KEY_N */
  1414. #ifndef TOLUA_DISABLE_tolua_get_KEY_N
  1415. static int tolua_get_KEY_N(lua_State* tolua_S)
  1416. {
  1417. tolua_pushnumber(tolua_S,(lua_Number)KEY_N);
  1418. return 1;
  1419. }
  1420. #endif //#ifndef TOLUA_DISABLE
  1421. /* get function: KEY_O */
  1422. #ifndef TOLUA_DISABLE_tolua_get_KEY_O
  1423. static int tolua_get_KEY_O(lua_State* tolua_S)
  1424. {
  1425. tolua_pushnumber(tolua_S,(lua_Number)KEY_O);
  1426. return 1;
  1427. }
  1428. #endif //#ifndef TOLUA_DISABLE
  1429. /* get function: KEY_P */
  1430. #ifndef TOLUA_DISABLE_tolua_get_KEY_P
  1431. static int tolua_get_KEY_P(lua_State* tolua_S)
  1432. {
  1433. tolua_pushnumber(tolua_S,(lua_Number)KEY_P);
  1434. return 1;
  1435. }
  1436. #endif //#ifndef TOLUA_DISABLE
  1437. /* get function: KEY_Q */
  1438. #ifndef TOLUA_DISABLE_tolua_get_KEY_Q
  1439. static int tolua_get_KEY_Q(lua_State* tolua_S)
  1440. {
  1441. tolua_pushnumber(tolua_S,(lua_Number)KEY_Q);
  1442. return 1;
  1443. }
  1444. #endif //#ifndef TOLUA_DISABLE
  1445. /* get function: KEY_R */
  1446. #ifndef TOLUA_DISABLE_tolua_get_KEY_R
  1447. static int tolua_get_KEY_R(lua_State* tolua_S)
  1448. {
  1449. tolua_pushnumber(tolua_S,(lua_Number)KEY_R);
  1450. return 1;
  1451. }
  1452. #endif //#ifndef TOLUA_DISABLE
  1453. /* get function: KEY_S */
  1454. #ifndef TOLUA_DISABLE_tolua_get_KEY_S
  1455. static int tolua_get_KEY_S(lua_State* tolua_S)
  1456. {
  1457. tolua_pushnumber(tolua_S,(lua_Number)KEY_S);
  1458. return 1;
  1459. }
  1460. #endif //#ifndef TOLUA_DISABLE
  1461. /* get function: KEY_T */
  1462. #ifndef TOLUA_DISABLE_tolua_get_KEY_T
  1463. static int tolua_get_KEY_T(lua_State* tolua_S)
  1464. {
  1465. tolua_pushnumber(tolua_S,(lua_Number)KEY_T);
  1466. return 1;
  1467. }
  1468. #endif //#ifndef TOLUA_DISABLE
  1469. /* get function: KEY_U */
  1470. #ifndef TOLUA_DISABLE_tolua_get_KEY_U
  1471. static int tolua_get_KEY_U(lua_State* tolua_S)
  1472. {
  1473. tolua_pushnumber(tolua_S,(lua_Number)KEY_U);
  1474. return 1;
  1475. }
  1476. #endif //#ifndef TOLUA_DISABLE
  1477. /* get function: KEY_V */
  1478. #ifndef TOLUA_DISABLE_tolua_get_KEY_V
  1479. static int tolua_get_KEY_V(lua_State* tolua_S)
  1480. {
  1481. tolua_pushnumber(tolua_S,(lua_Number)KEY_V);
  1482. return 1;
  1483. }
  1484. #endif //#ifndef TOLUA_DISABLE
  1485. /* get function: KEY_W */
  1486. #ifndef TOLUA_DISABLE_tolua_get_KEY_W
  1487. static int tolua_get_KEY_W(lua_State* tolua_S)
  1488. {
  1489. tolua_pushnumber(tolua_S,(lua_Number)KEY_W);
  1490. return 1;
  1491. }
  1492. #endif //#ifndef TOLUA_DISABLE
  1493. /* get function: KEY_X */
  1494. #ifndef TOLUA_DISABLE_tolua_get_KEY_X
  1495. static int tolua_get_KEY_X(lua_State* tolua_S)
  1496. {
  1497. tolua_pushnumber(tolua_S,(lua_Number)KEY_X);
  1498. return 1;
  1499. }
  1500. #endif //#ifndef TOLUA_DISABLE
  1501. /* get function: KEY_Y */
  1502. #ifndef TOLUA_DISABLE_tolua_get_KEY_Y
  1503. static int tolua_get_KEY_Y(lua_State* tolua_S)
  1504. {
  1505. tolua_pushnumber(tolua_S,(lua_Number)KEY_Y);
  1506. return 1;
  1507. }
  1508. #endif //#ifndef TOLUA_DISABLE
  1509. /* get function: KEY_Z */
  1510. #ifndef TOLUA_DISABLE_tolua_get_KEY_Z
  1511. static int tolua_get_KEY_Z(lua_State* tolua_S)
  1512. {
  1513. tolua_pushnumber(tolua_S,(lua_Number)KEY_Z);
  1514. return 1;
  1515. }
  1516. #endif //#ifndef TOLUA_DISABLE
  1517. /* get function: KEY_BACKSPACE */
  1518. #ifndef TOLUA_DISABLE_tolua_get_KEY_BACKSPACE
  1519. static int tolua_get_KEY_BACKSPACE(lua_State* tolua_S)
  1520. {
  1521. tolua_pushnumber(tolua_S,(lua_Number)KEY_BACKSPACE);
  1522. return 1;
  1523. }
  1524. #endif //#ifndef TOLUA_DISABLE
  1525. /* get function: KEY_TAB */
  1526. #ifndef TOLUA_DISABLE_tolua_get_KEY_TAB
  1527. static int tolua_get_KEY_TAB(lua_State* tolua_S)
  1528. {
  1529. tolua_pushnumber(tolua_S,(lua_Number)KEY_TAB);
  1530. return 1;
  1531. }
  1532. #endif //#ifndef TOLUA_DISABLE
  1533. /* get function: KEY_RETURN */
  1534. #ifndef TOLUA_DISABLE_tolua_get_KEY_RETURN
  1535. static int tolua_get_KEY_RETURN(lua_State* tolua_S)
  1536. {
  1537. tolua_pushnumber(tolua_S,(lua_Number)KEY_RETURN);
  1538. return 1;
  1539. }
  1540. #endif //#ifndef TOLUA_DISABLE
  1541. /* get function: KEY_RETURN2 */
  1542. #ifndef TOLUA_DISABLE_tolua_get_KEY_RETURN2
  1543. static int tolua_get_KEY_RETURN2(lua_State* tolua_S)
  1544. {
  1545. tolua_pushnumber(tolua_S,(lua_Number)KEY_RETURN2);
  1546. return 1;
  1547. }
  1548. #endif //#ifndef TOLUA_DISABLE
  1549. /* get function: KEY_KP_ENTER */
  1550. #ifndef TOLUA_DISABLE_tolua_get_KEY_KP_ENTER
  1551. static int tolua_get_KEY_KP_ENTER(lua_State* tolua_S)
  1552. {
  1553. tolua_pushnumber(tolua_S,(lua_Number)KEY_KP_ENTER);
  1554. return 1;
  1555. }
  1556. #endif //#ifndef TOLUA_DISABLE
  1557. /* get function: KEY_SHIFT */
  1558. #ifndef TOLUA_DISABLE_tolua_get_KEY_SHIFT
  1559. static int tolua_get_KEY_SHIFT(lua_State* tolua_S)
  1560. {
  1561. tolua_pushnumber(tolua_S,(lua_Number)KEY_SHIFT);
  1562. return 1;
  1563. }
  1564. #endif //#ifndef TOLUA_DISABLE
  1565. /* get function: KEY_CTRL */
  1566. #ifndef TOLUA_DISABLE_tolua_get_KEY_CTRL
  1567. static int tolua_get_KEY_CTRL(lua_State* tolua_S)
  1568. {
  1569. tolua_pushnumber(tolua_S,(lua_Number)KEY_CTRL);
  1570. return 1;
  1571. }
  1572. #endif //#ifndef TOLUA_DISABLE
  1573. /* get function: KEY_ALT */
  1574. #ifndef TOLUA_DISABLE_tolua_get_KEY_ALT
  1575. static int tolua_get_KEY_ALT(lua_State* tolua_S)
  1576. {
  1577. tolua_pushnumber(tolua_S,(lua_Number)KEY_ALT);
  1578. return 1;
  1579. }
  1580. #endif //#ifndef TOLUA_DISABLE
  1581. /* get function: KEY_PAUSE */
  1582. #ifndef TOLUA_DISABLE_tolua_get_KEY_PAUSE
  1583. static int tolua_get_KEY_PAUSE(lua_State* tolua_S)
  1584. {
  1585. tolua_pushnumber(tolua_S,(lua_Number)KEY_PAUSE);
  1586. return 1;
  1587. }
  1588. #endif //#ifndef TOLUA_DISABLE
  1589. /* get function: KEY_CAPSLOCK */
  1590. #ifndef TOLUA_DISABLE_tolua_get_KEY_CAPSLOCK
  1591. static int tolua_get_KEY_CAPSLOCK(lua_State* tolua_S)
  1592. {
  1593. tolua_pushnumber(tolua_S,(lua_Number)KEY_CAPSLOCK);
  1594. return 1;
  1595. }
  1596. #endif //#ifndef TOLUA_DISABLE
  1597. /* get function: KEY_ESC */
  1598. #ifndef TOLUA_DISABLE_tolua_get_KEY_ESC
  1599. static int tolua_get_KEY_ESC(lua_State* tolua_S)
  1600. {
  1601. tolua_pushnumber(tolua_S,(lua_Number)KEY_ESC);
  1602. return 1;
  1603. }
  1604. #endif //#ifndef TOLUA_DISABLE
  1605. /* get function: KEY_SPACE */
  1606. #ifndef TOLUA_DISABLE_tolua_get_KEY_SPACE
  1607. static int tolua_get_KEY_SPACE(lua_State* tolua_S)
  1608. {
  1609. tolua_pushnumber(tolua_S,(lua_Number)KEY_SPACE);
  1610. return 1;
  1611. }
  1612. #endif //#ifndef TOLUA_DISABLE
  1613. /* get function: KEY_PAGEUP */
  1614. #ifndef TOLUA_DISABLE_tolua_get_KEY_PAGEUP
  1615. static int tolua_get_KEY_PAGEUP(lua_State* tolua_S)
  1616. {
  1617. tolua_pushnumber(tolua_S,(lua_Number)KEY_PAGEUP);
  1618. return 1;
  1619. }
  1620. #endif //#ifndef TOLUA_DISABLE
  1621. /* get function: KEY_PAGEDOWN */
  1622. #ifndef TOLUA_DISABLE_tolua_get_KEY_PAGEDOWN
  1623. static int tolua_get_KEY_PAGEDOWN(lua_State* tolua_S)
  1624. {
  1625. tolua_pushnumber(tolua_S,(lua_Number)KEY_PAGEDOWN);
  1626. return 1;
  1627. }
  1628. #endif //#ifndef TOLUA_DISABLE
  1629. /* get function: KEY_END */
  1630. #ifndef TOLUA_DISABLE_tolua_get_KEY_END
  1631. static int tolua_get_KEY_END(lua_State* tolua_S)
  1632. {
  1633. tolua_pushnumber(tolua_S,(lua_Number)KEY_END);
  1634. return 1;
  1635. }
  1636. #endif //#ifndef TOLUA_DISABLE
  1637. /* get function: KEY_HOME */
  1638. #ifndef TOLUA_DISABLE_tolua_get_KEY_HOME
  1639. static int tolua_get_KEY_HOME(lua_State* tolua_S)
  1640. {
  1641. tolua_pushnumber(tolua_S,(lua_Number)KEY_HOME);
  1642. return 1;
  1643. }
  1644. #endif //#ifndef TOLUA_DISABLE
  1645. /* get function: KEY_LEFT */
  1646. #ifndef TOLUA_DISABLE_tolua_get_KEY_LEFT
  1647. static int tolua_get_KEY_LEFT(lua_State* tolua_S)
  1648. {
  1649. tolua_pushnumber(tolua_S,(lua_Number)KEY_LEFT);
  1650. return 1;
  1651. }
  1652. #endif //#ifndef TOLUA_DISABLE
  1653. /* get function: KEY_UP */
  1654. #ifndef TOLUA_DISABLE_tolua_get_KEY_UP
  1655. static int tolua_get_KEY_UP(lua_State* tolua_S)
  1656. {
  1657. tolua_pushnumber(tolua_S,(lua_Number)KEY_UP);
  1658. return 1;
  1659. }
  1660. #endif //#ifndef TOLUA_DISABLE
  1661. /* get function: KEY_RIGHT */
  1662. #ifndef TOLUA_DISABLE_tolua_get_KEY_RIGHT
  1663. static int tolua_get_KEY_RIGHT(lua_State* tolua_S)
  1664. {
  1665. tolua_pushnumber(tolua_S,(lua_Number)KEY_RIGHT);
  1666. return 1;
  1667. }
  1668. #endif //#ifndef TOLUA_DISABLE
  1669. /* get function: KEY_DOWN */
  1670. #ifndef TOLUA_DISABLE_tolua_get_KEY_DOWN
  1671. static int tolua_get_KEY_DOWN(lua_State* tolua_S)
  1672. {
  1673. tolua_pushnumber(tolua_S,(lua_Number)KEY_DOWN);
  1674. return 1;
  1675. }
  1676. #endif //#ifndef TOLUA_DISABLE
  1677. /* get function: KEY_SELECT */
  1678. #ifndef TOLUA_DISABLE_tolua_get_KEY_SELECT
  1679. static int tolua_get_KEY_SELECT(lua_State* tolua_S)
  1680. {
  1681. tolua_pushnumber(tolua_S,(lua_Number)KEY_SELECT);
  1682. return 1;
  1683. }
  1684. #endif //#ifndef TOLUA_DISABLE
  1685. /* get function: KEY_PRINTSCREEN */
  1686. #ifndef TOLUA_DISABLE_tolua_get_KEY_PRINTSCREEN
  1687. static int tolua_get_KEY_PRINTSCREEN(lua_State* tolua_S)
  1688. {
  1689. tolua_pushnumber(tolua_S,(lua_Number)KEY_PRINTSCREEN);
  1690. return 1;
  1691. }
  1692. #endif //#ifndef TOLUA_DISABLE
  1693. /* get function: KEY_INSERT */
  1694. #ifndef TOLUA_DISABLE_tolua_get_KEY_INSERT
  1695. static int tolua_get_KEY_INSERT(lua_State* tolua_S)
  1696. {
  1697. tolua_pushnumber(tolua_S,(lua_Number)KEY_INSERT);
  1698. return 1;
  1699. }
  1700. #endif //#ifndef TOLUA_DISABLE
  1701. /* get function: KEY_DELETE */
  1702. #ifndef TOLUA_DISABLE_tolua_get_KEY_DELETE
  1703. static int tolua_get_KEY_DELETE(lua_State* tolua_S)
  1704. {
  1705. tolua_pushnumber(tolua_S,(lua_Number)KEY_DELETE);
  1706. return 1;
  1707. }
  1708. #endif //#ifndef TOLUA_DISABLE
  1709. /* get function: KEY_LWIN */
  1710. #ifndef TOLUA_DISABLE_tolua_get_KEY_LWIN
  1711. static int tolua_get_KEY_LWIN(lua_State* tolua_S)
  1712. {
  1713. tolua_pushnumber(tolua_S,(lua_Number)KEY_LWIN);
  1714. return 1;
  1715. }
  1716. #endif //#ifndef TOLUA_DISABLE
  1717. /* get function: KEY_RWIN */
  1718. #ifndef TOLUA_DISABLE_tolua_get_KEY_RWIN
  1719. static int tolua_get_KEY_RWIN(lua_State* tolua_S)
  1720. {
  1721. tolua_pushnumber(tolua_S,(lua_Number)KEY_RWIN);
  1722. return 1;
  1723. }
  1724. #endif //#ifndef TOLUA_DISABLE
  1725. /* get function: KEY_APPS */
  1726. #ifndef TOLUA_DISABLE_tolua_get_KEY_APPS
  1727. static int tolua_get_KEY_APPS(lua_State* tolua_S)
  1728. {
  1729. tolua_pushnumber(tolua_S,(lua_Number)KEY_APPS);
  1730. return 1;
  1731. }
  1732. #endif //#ifndef TOLUA_DISABLE
  1733. /* get function: KEY_NUMPAD0 */
  1734. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD0
  1735. static int tolua_get_KEY_NUMPAD0(lua_State* tolua_S)
  1736. {
  1737. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD0);
  1738. return 1;
  1739. }
  1740. #endif //#ifndef TOLUA_DISABLE
  1741. /* get function: KEY_NUMPAD1 */
  1742. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD1
  1743. static int tolua_get_KEY_NUMPAD1(lua_State* tolua_S)
  1744. {
  1745. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD1);
  1746. return 1;
  1747. }
  1748. #endif //#ifndef TOLUA_DISABLE
  1749. /* get function: KEY_NUMPAD2 */
  1750. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD2
  1751. static int tolua_get_KEY_NUMPAD2(lua_State* tolua_S)
  1752. {
  1753. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD2);
  1754. return 1;
  1755. }
  1756. #endif //#ifndef TOLUA_DISABLE
  1757. /* get function: KEY_NUMPAD3 */
  1758. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD3
  1759. static int tolua_get_KEY_NUMPAD3(lua_State* tolua_S)
  1760. {
  1761. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD3);
  1762. return 1;
  1763. }
  1764. #endif //#ifndef TOLUA_DISABLE
  1765. /* get function: KEY_NUMPAD4 */
  1766. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD4
  1767. static int tolua_get_KEY_NUMPAD4(lua_State* tolua_S)
  1768. {
  1769. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD4);
  1770. return 1;
  1771. }
  1772. #endif //#ifndef TOLUA_DISABLE
  1773. /* get function: KEY_NUMPAD5 */
  1774. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD5
  1775. static int tolua_get_KEY_NUMPAD5(lua_State* tolua_S)
  1776. {
  1777. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD5);
  1778. return 1;
  1779. }
  1780. #endif //#ifndef TOLUA_DISABLE
  1781. /* get function: KEY_NUMPAD6 */
  1782. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD6
  1783. static int tolua_get_KEY_NUMPAD6(lua_State* tolua_S)
  1784. {
  1785. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD6);
  1786. return 1;
  1787. }
  1788. #endif //#ifndef TOLUA_DISABLE
  1789. /* get function: KEY_NUMPAD7 */
  1790. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD7
  1791. static int tolua_get_KEY_NUMPAD7(lua_State* tolua_S)
  1792. {
  1793. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD7);
  1794. return 1;
  1795. }
  1796. #endif //#ifndef TOLUA_DISABLE
  1797. /* get function: KEY_NUMPAD8 */
  1798. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD8
  1799. static int tolua_get_KEY_NUMPAD8(lua_State* tolua_S)
  1800. {
  1801. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD8);
  1802. return 1;
  1803. }
  1804. #endif //#ifndef TOLUA_DISABLE
  1805. /* get function: KEY_NUMPAD9 */
  1806. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMPAD9
  1807. static int tolua_get_KEY_NUMPAD9(lua_State* tolua_S)
  1808. {
  1809. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMPAD9);
  1810. return 1;
  1811. }
  1812. #endif //#ifndef TOLUA_DISABLE
  1813. /* get function: KEY_MULTIPLY */
  1814. #ifndef TOLUA_DISABLE_tolua_get_KEY_MULTIPLY
  1815. static int tolua_get_KEY_MULTIPLY(lua_State* tolua_S)
  1816. {
  1817. tolua_pushnumber(tolua_S,(lua_Number)KEY_MULTIPLY);
  1818. return 1;
  1819. }
  1820. #endif //#ifndef TOLUA_DISABLE
  1821. /* get function: KEY_ADD */
  1822. #ifndef TOLUA_DISABLE_tolua_get_KEY_ADD
  1823. static int tolua_get_KEY_ADD(lua_State* tolua_S)
  1824. {
  1825. tolua_pushnumber(tolua_S,(lua_Number)KEY_ADD);
  1826. return 1;
  1827. }
  1828. #endif //#ifndef TOLUA_DISABLE
  1829. /* get function: KEY_SUBTRACT */
  1830. #ifndef TOLUA_DISABLE_tolua_get_KEY_SUBTRACT
  1831. static int tolua_get_KEY_SUBTRACT(lua_State* tolua_S)
  1832. {
  1833. tolua_pushnumber(tolua_S,(lua_Number)KEY_SUBTRACT);
  1834. return 1;
  1835. }
  1836. #endif //#ifndef TOLUA_DISABLE
  1837. /* get function: KEY_DECIMAL */
  1838. #ifndef TOLUA_DISABLE_tolua_get_KEY_DECIMAL
  1839. static int tolua_get_KEY_DECIMAL(lua_State* tolua_S)
  1840. {
  1841. tolua_pushnumber(tolua_S,(lua_Number)KEY_DECIMAL);
  1842. return 1;
  1843. }
  1844. #endif //#ifndef TOLUA_DISABLE
  1845. /* get function: KEY_DIVIDE */
  1846. #ifndef TOLUA_DISABLE_tolua_get_KEY_DIVIDE
  1847. static int tolua_get_KEY_DIVIDE(lua_State* tolua_S)
  1848. {
  1849. tolua_pushnumber(tolua_S,(lua_Number)KEY_DIVIDE);
  1850. return 1;
  1851. }
  1852. #endif //#ifndef TOLUA_DISABLE
  1853. /* get function: KEY_F1 */
  1854. #ifndef TOLUA_DISABLE_tolua_get_KEY_F1
  1855. static int tolua_get_KEY_F1(lua_State* tolua_S)
  1856. {
  1857. tolua_pushnumber(tolua_S,(lua_Number)KEY_F1);
  1858. return 1;
  1859. }
  1860. #endif //#ifndef TOLUA_DISABLE
  1861. /* get function: KEY_F2 */
  1862. #ifndef TOLUA_DISABLE_tolua_get_KEY_F2
  1863. static int tolua_get_KEY_F2(lua_State* tolua_S)
  1864. {
  1865. tolua_pushnumber(tolua_S,(lua_Number)KEY_F2);
  1866. return 1;
  1867. }
  1868. #endif //#ifndef TOLUA_DISABLE
  1869. /* get function: KEY_F3 */
  1870. #ifndef TOLUA_DISABLE_tolua_get_KEY_F3
  1871. static int tolua_get_KEY_F3(lua_State* tolua_S)
  1872. {
  1873. tolua_pushnumber(tolua_S,(lua_Number)KEY_F3);
  1874. return 1;
  1875. }
  1876. #endif //#ifndef TOLUA_DISABLE
  1877. /* get function: KEY_F4 */
  1878. #ifndef TOLUA_DISABLE_tolua_get_KEY_F4
  1879. static int tolua_get_KEY_F4(lua_State* tolua_S)
  1880. {
  1881. tolua_pushnumber(tolua_S,(lua_Number)KEY_F4);
  1882. return 1;
  1883. }
  1884. #endif //#ifndef TOLUA_DISABLE
  1885. /* get function: KEY_F5 */
  1886. #ifndef TOLUA_DISABLE_tolua_get_KEY_F5
  1887. static int tolua_get_KEY_F5(lua_State* tolua_S)
  1888. {
  1889. tolua_pushnumber(tolua_S,(lua_Number)KEY_F5);
  1890. return 1;
  1891. }
  1892. #endif //#ifndef TOLUA_DISABLE
  1893. /* get function: KEY_F6 */
  1894. #ifndef TOLUA_DISABLE_tolua_get_KEY_F6
  1895. static int tolua_get_KEY_F6(lua_State* tolua_S)
  1896. {
  1897. tolua_pushnumber(tolua_S,(lua_Number)KEY_F6);
  1898. return 1;
  1899. }
  1900. #endif //#ifndef TOLUA_DISABLE
  1901. /* get function: KEY_F7 */
  1902. #ifndef TOLUA_DISABLE_tolua_get_KEY_F7
  1903. static int tolua_get_KEY_F7(lua_State* tolua_S)
  1904. {
  1905. tolua_pushnumber(tolua_S,(lua_Number)KEY_F7);
  1906. return 1;
  1907. }
  1908. #endif //#ifndef TOLUA_DISABLE
  1909. /* get function: KEY_F8 */
  1910. #ifndef TOLUA_DISABLE_tolua_get_KEY_F8
  1911. static int tolua_get_KEY_F8(lua_State* tolua_S)
  1912. {
  1913. tolua_pushnumber(tolua_S,(lua_Number)KEY_F8);
  1914. return 1;
  1915. }
  1916. #endif //#ifndef TOLUA_DISABLE
  1917. /* get function: KEY_F9 */
  1918. #ifndef TOLUA_DISABLE_tolua_get_KEY_F9
  1919. static int tolua_get_KEY_F9(lua_State* tolua_S)
  1920. {
  1921. tolua_pushnumber(tolua_S,(lua_Number)KEY_F9);
  1922. return 1;
  1923. }
  1924. #endif //#ifndef TOLUA_DISABLE
  1925. /* get function: KEY_F10 */
  1926. #ifndef TOLUA_DISABLE_tolua_get_KEY_F10
  1927. static int tolua_get_KEY_F10(lua_State* tolua_S)
  1928. {
  1929. tolua_pushnumber(tolua_S,(lua_Number)KEY_F10);
  1930. return 1;
  1931. }
  1932. #endif //#ifndef TOLUA_DISABLE
  1933. /* get function: KEY_F11 */
  1934. #ifndef TOLUA_DISABLE_tolua_get_KEY_F11
  1935. static int tolua_get_KEY_F11(lua_State* tolua_S)
  1936. {
  1937. tolua_pushnumber(tolua_S,(lua_Number)KEY_F11);
  1938. return 1;
  1939. }
  1940. #endif //#ifndef TOLUA_DISABLE
  1941. /* get function: KEY_F12 */
  1942. #ifndef TOLUA_DISABLE_tolua_get_KEY_F12
  1943. static int tolua_get_KEY_F12(lua_State* tolua_S)
  1944. {
  1945. tolua_pushnumber(tolua_S,(lua_Number)KEY_F12);
  1946. return 1;
  1947. }
  1948. #endif //#ifndef TOLUA_DISABLE
  1949. /* get function: KEY_F13 */
  1950. #ifndef TOLUA_DISABLE_tolua_get_KEY_F13
  1951. static int tolua_get_KEY_F13(lua_State* tolua_S)
  1952. {
  1953. tolua_pushnumber(tolua_S,(lua_Number)KEY_F13);
  1954. return 1;
  1955. }
  1956. #endif //#ifndef TOLUA_DISABLE
  1957. /* get function: KEY_F14 */
  1958. #ifndef TOLUA_DISABLE_tolua_get_KEY_F14
  1959. static int tolua_get_KEY_F14(lua_State* tolua_S)
  1960. {
  1961. tolua_pushnumber(tolua_S,(lua_Number)KEY_F14);
  1962. return 1;
  1963. }
  1964. #endif //#ifndef TOLUA_DISABLE
  1965. /* get function: KEY_F15 */
  1966. #ifndef TOLUA_DISABLE_tolua_get_KEY_F15
  1967. static int tolua_get_KEY_F15(lua_State* tolua_S)
  1968. {
  1969. tolua_pushnumber(tolua_S,(lua_Number)KEY_F15);
  1970. return 1;
  1971. }
  1972. #endif //#ifndef TOLUA_DISABLE
  1973. /* get function: KEY_F16 */
  1974. #ifndef TOLUA_DISABLE_tolua_get_KEY_F16
  1975. static int tolua_get_KEY_F16(lua_State* tolua_S)
  1976. {
  1977. tolua_pushnumber(tolua_S,(lua_Number)KEY_F16);
  1978. return 1;
  1979. }
  1980. #endif //#ifndef TOLUA_DISABLE
  1981. /* get function: KEY_F17 */
  1982. #ifndef TOLUA_DISABLE_tolua_get_KEY_F17
  1983. static int tolua_get_KEY_F17(lua_State* tolua_S)
  1984. {
  1985. tolua_pushnumber(tolua_S,(lua_Number)KEY_F17);
  1986. return 1;
  1987. }
  1988. #endif //#ifndef TOLUA_DISABLE
  1989. /* get function: KEY_F18 */
  1990. #ifndef TOLUA_DISABLE_tolua_get_KEY_F18
  1991. static int tolua_get_KEY_F18(lua_State* tolua_S)
  1992. {
  1993. tolua_pushnumber(tolua_S,(lua_Number)KEY_F18);
  1994. return 1;
  1995. }
  1996. #endif //#ifndef TOLUA_DISABLE
  1997. /* get function: KEY_F19 */
  1998. #ifndef TOLUA_DISABLE_tolua_get_KEY_F19
  1999. static int tolua_get_KEY_F19(lua_State* tolua_S)
  2000. {
  2001. tolua_pushnumber(tolua_S,(lua_Number)KEY_F19);
  2002. return 1;
  2003. }
  2004. #endif //#ifndef TOLUA_DISABLE
  2005. /* get function: KEY_F20 */
  2006. #ifndef TOLUA_DISABLE_tolua_get_KEY_F20
  2007. static int tolua_get_KEY_F20(lua_State* tolua_S)
  2008. {
  2009. tolua_pushnumber(tolua_S,(lua_Number)KEY_F20);
  2010. return 1;
  2011. }
  2012. #endif //#ifndef TOLUA_DISABLE
  2013. /* get function: KEY_F21 */
  2014. #ifndef TOLUA_DISABLE_tolua_get_KEY_F21
  2015. static int tolua_get_KEY_F21(lua_State* tolua_S)
  2016. {
  2017. tolua_pushnumber(tolua_S,(lua_Number)KEY_F21);
  2018. return 1;
  2019. }
  2020. #endif //#ifndef TOLUA_DISABLE
  2021. /* get function: KEY_F22 */
  2022. #ifndef TOLUA_DISABLE_tolua_get_KEY_F22
  2023. static int tolua_get_KEY_F22(lua_State* tolua_S)
  2024. {
  2025. tolua_pushnumber(tolua_S,(lua_Number)KEY_F22);
  2026. return 1;
  2027. }
  2028. #endif //#ifndef TOLUA_DISABLE
  2029. /* get function: KEY_F23 */
  2030. #ifndef TOLUA_DISABLE_tolua_get_KEY_F23
  2031. static int tolua_get_KEY_F23(lua_State* tolua_S)
  2032. {
  2033. tolua_pushnumber(tolua_S,(lua_Number)KEY_F23);
  2034. return 1;
  2035. }
  2036. #endif //#ifndef TOLUA_DISABLE
  2037. /* get function: KEY_F24 */
  2038. #ifndef TOLUA_DISABLE_tolua_get_KEY_F24
  2039. static int tolua_get_KEY_F24(lua_State* tolua_S)
  2040. {
  2041. tolua_pushnumber(tolua_S,(lua_Number)KEY_F24);
  2042. return 1;
  2043. }
  2044. #endif //#ifndef TOLUA_DISABLE
  2045. /* get function: KEY_NUMLOCK */
  2046. #ifndef TOLUA_DISABLE_tolua_get_KEY_NUMLOCK
  2047. static int tolua_get_KEY_NUMLOCK(lua_State* tolua_S)
  2048. {
  2049. tolua_pushnumber(tolua_S,(lua_Number)KEY_NUMLOCK);
  2050. return 1;
  2051. }
  2052. #endif //#ifndef TOLUA_DISABLE
  2053. /* get function: KEY_SCROLLLOCK */
  2054. #ifndef TOLUA_DISABLE_tolua_get_KEY_SCROLLLOCK
  2055. static int tolua_get_KEY_SCROLLLOCK(lua_State* tolua_S)
  2056. {
  2057. tolua_pushnumber(tolua_S,(lua_Number)KEY_SCROLLLOCK);
  2058. return 1;
  2059. }
  2060. #endif //#ifndef TOLUA_DISABLE
  2061. /* get function: KEY_LSHIFT */
  2062. #ifndef TOLUA_DISABLE_tolua_get_KEY_LSHIFT
  2063. static int tolua_get_KEY_LSHIFT(lua_State* tolua_S)
  2064. {
  2065. tolua_pushnumber(tolua_S,(lua_Number)KEY_LSHIFT);
  2066. return 1;
  2067. }
  2068. #endif //#ifndef TOLUA_DISABLE
  2069. /* get function: KEY_RSHIFT */
  2070. #ifndef TOLUA_DISABLE_tolua_get_KEY_RSHIFT
  2071. static int tolua_get_KEY_RSHIFT(lua_State* tolua_S)
  2072. {
  2073. tolua_pushnumber(tolua_S,(lua_Number)KEY_RSHIFT);
  2074. return 1;
  2075. }
  2076. #endif //#ifndef TOLUA_DISABLE
  2077. /* get function: KEY_LCTRL */
  2078. #ifndef TOLUA_DISABLE_tolua_get_KEY_LCTRL
  2079. static int tolua_get_KEY_LCTRL(lua_State* tolua_S)
  2080. {
  2081. tolua_pushnumber(tolua_S,(lua_Number)KEY_LCTRL);
  2082. return 1;
  2083. }
  2084. #endif //#ifndef TOLUA_DISABLE
  2085. /* get function: KEY_RCTRL */
  2086. #ifndef TOLUA_DISABLE_tolua_get_KEY_RCTRL
  2087. static int tolua_get_KEY_RCTRL(lua_State* tolua_S)
  2088. {
  2089. tolua_pushnumber(tolua_S,(lua_Number)KEY_RCTRL);
  2090. return 1;
  2091. }
  2092. #endif //#ifndef TOLUA_DISABLE
  2093. /* get function: KEY_LALT */
  2094. #ifndef TOLUA_DISABLE_tolua_get_KEY_LALT
  2095. static int tolua_get_KEY_LALT(lua_State* tolua_S)
  2096. {
  2097. tolua_pushnumber(tolua_S,(lua_Number)KEY_LALT);
  2098. return 1;
  2099. }
  2100. #endif //#ifndef TOLUA_DISABLE
  2101. /* get function: KEY_RALT */
  2102. #ifndef TOLUA_DISABLE_tolua_get_KEY_RALT
  2103. static int tolua_get_KEY_RALT(lua_State* tolua_S)
  2104. {
  2105. tolua_pushnumber(tolua_S,(lua_Number)KEY_RALT);
  2106. return 1;
  2107. }
  2108. #endif //#ifndef TOLUA_DISABLE
  2109. /* get function: HAT_CENTER */
  2110. #ifndef TOLUA_DISABLE_tolua_get_HAT_CENTER
  2111. static int tolua_get_HAT_CENTER(lua_State* tolua_S)
  2112. {
  2113. tolua_pushnumber(tolua_S,(lua_Number)HAT_CENTER);
  2114. return 1;
  2115. }
  2116. #endif //#ifndef TOLUA_DISABLE
  2117. /* get function: HAT_UP */
  2118. #ifndef TOLUA_DISABLE_tolua_get_HAT_UP
  2119. static int tolua_get_HAT_UP(lua_State* tolua_S)
  2120. {
  2121. tolua_pushnumber(tolua_S,(lua_Number)HAT_UP);
  2122. return 1;
  2123. }
  2124. #endif //#ifndef TOLUA_DISABLE
  2125. /* get function: HAT_RIGHT */
  2126. #ifndef TOLUA_DISABLE_tolua_get_HAT_RIGHT
  2127. static int tolua_get_HAT_RIGHT(lua_State* tolua_S)
  2128. {
  2129. tolua_pushnumber(tolua_S,(lua_Number)HAT_RIGHT);
  2130. return 1;
  2131. }
  2132. #endif //#ifndef TOLUA_DISABLE
  2133. /* get function: HAT_DOWN */
  2134. #ifndef TOLUA_DISABLE_tolua_get_HAT_DOWN
  2135. static int tolua_get_HAT_DOWN(lua_State* tolua_S)
  2136. {
  2137. tolua_pushnumber(tolua_S,(lua_Number)HAT_DOWN);
  2138. return 1;
  2139. }
  2140. #endif //#ifndef TOLUA_DISABLE
  2141. /* get function: HAT_LEFT */
  2142. #ifndef TOLUA_DISABLE_tolua_get_HAT_LEFT
  2143. static int tolua_get_HAT_LEFT(lua_State* tolua_S)
  2144. {
  2145. tolua_pushnumber(tolua_S,(lua_Number)HAT_LEFT);
  2146. return 1;
  2147. }
  2148. #endif //#ifndef TOLUA_DISABLE
  2149. /* Open function */
  2150. TOLUA_API int tolua_Input_open (lua_State* tolua_S)
  2151. {
  2152. tolua_open(tolua_S);
  2153. tolua_reg_types(tolua_S);
  2154. tolua_module(tolua_S,NULL,1);
  2155. tolua_beginmodule(tolua_S,NULL);
  2156. tolua_cclass(tolua_S,"TouchState","TouchState","",NULL);
  2157. tolua_beginmodule(tolua_S,"TouchState");
  2158. tolua_variable(tolua_S,"touchID",tolua_get_TouchState_touchID,tolua_set_TouchState_touchID);
  2159. tolua_variable(tolua_S,"position",tolua_get_TouchState_position,tolua_set_TouchState_position);
  2160. tolua_variable(tolua_S,"lastPosition",tolua_get_TouchState_lastPosition,tolua_set_TouchState_lastPosition);
  2161. tolua_variable(tolua_S,"delta",tolua_get_TouchState_delta,tolua_set_TouchState_delta);
  2162. tolua_variable(tolua_S,"pressure",tolua_get_TouchState_pressure,tolua_set_TouchState_pressure);
  2163. tolua_endmodule(tolua_S);
  2164. tolua_cclass(tolua_S,"JoystickState","JoystickState","",NULL);
  2165. tolua_beginmodule(tolua_S,"JoystickState");
  2166. tolua_function(tolua_S,"GetNumButtons",tolua_Input_JoystickState_GetNumButtons00);
  2167. tolua_function(tolua_S,"GetNumAxes",tolua_Input_JoystickState_GetNumAxes00);
  2168. tolua_function(tolua_S,"GetNumHats",tolua_Input_JoystickState_GetNumHats00);
  2169. tolua_function(tolua_S,"GetButtonDown",tolua_Input_JoystickState_GetButtonDown00);
  2170. tolua_function(tolua_S,"GetButtonPress",tolua_Input_JoystickState_GetButtonPress00);
  2171. tolua_function(tolua_S,"GetAxisPosition",tolua_Input_JoystickState_GetAxisPosition00);
  2172. tolua_function(tolua_S,"GetHatPosition",tolua_Input_JoystickState_GetHatPosition00);
  2173. tolua_endmodule(tolua_S);
  2174. tolua_cclass(tolua_S,"Input","Input","Object",NULL);
  2175. tolua_beginmodule(tolua_S,"Input");
  2176. tolua_function(tolua_S,"SetMouseVisible",tolua_Input_Input_SetMouseVisible00);
  2177. tolua_function(tolua_S,"OpenJoystick",tolua_Input_Input_OpenJoystick00);
  2178. tolua_function(tolua_S,"CloseJoystick",tolua_Input_Input_CloseJoystick00);
  2179. tolua_function(tolua_S,"DetectJoysticks",tolua_Input_Input_DetectJoysticks00);
  2180. tolua_function(tolua_S,"GetKeyDown",tolua_Input_Input_GetKeyDown00);
  2181. tolua_function(tolua_S,"GetKeyPress",tolua_Input_Input_GetKeyPress00);
  2182. tolua_function(tolua_S,"GetMouseButtonDown",tolua_Input_Input_GetMouseButtonDown00);
  2183. tolua_function(tolua_S,"GetMouseButtonPress",tolua_Input_Input_GetMouseButtonPress00);
  2184. tolua_function(tolua_S,"GetQualifierDown",tolua_Input_Input_GetQualifierDown00);
  2185. tolua_function(tolua_S,"GetQualifierPress",tolua_Input_Input_GetQualifierPress00);
  2186. tolua_function(tolua_S,"GetQualifiers",tolua_Input_Input_GetQualifiers00);
  2187. tolua_function(tolua_S,"GetMousePosition",tolua_Input_Input_GetMousePosition00);
  2188. tolua_function(tolua_S,"GetMouseMove",tolua_Input_Input_GetMouseMove00);
  2189. tolua_function(tolua_S,"GetMouseMoveX",tolua_Input_Input_GetMouseMoveX00);
  2190. tolua_function(tolua_S,"GetMouseMoveY",tolua_Input_Input_GetMouseMoveY00);
  2191. tolua_function(tolua_S,"GetMouseMoveWheel",tolua_Input_Input_GetMouseMoveWheel00);
  2192. tolua_function(tolua_S,"GetNumTouches",tolua_Input_Input_GetNumTouches00);
  2193. tolua_function(tolua_S,"GetTouch",tolua_Input_Input_GetTouch00);
  2194. tolua_function(tolua_S,"GetNumJoysticks",tolua_Input_Input_GetNumJoysticks00);
  2195. tolua_function(tolua_S,"GetJoystickName",tolua_Input_Input_GetJoystickName00);
  2196. tolua_function(tolua_S,"GetJoystick",tolua_Input_Input_GetJoystick00);
  2197. tolua_function(tolua_S,"GetToggleFullscreen",tolua_Input_Input_GetToggleFullscreen00);
  2198. tolua_function(tolua_S,"IsMouseVisible",tolua_Input_Input_IsMouseVisible00);
  2199. tolua_function(tolua_S,"HasFocus",tolua_Input_Input_HasFocus00);
  2200. tolua_function(tolua_S,"IsMinimized",tolua_Input_Input_IsMinimized00);
  2201. tolua_endmodule(tolua_S);
  2202. tolua_function(tolua_S,"GetInput",tolua_Input_GetInput00);
  2203. tolua_variable(tolua_S,"MOUSEB_LEFT",tolua_get_MOUSEB_LEFT,NULL);
  2204. tolua_variable(tolua_S,"MOUSEB_MIDDLE",tolua_get_MOUSEB_MIDDLE,NULL);
  2205. tolua_variable(tolua_S,"MOUSEB_RIGHT",tolua_get_MOUSEB_RIGHT,NULL);
  2206. tolua_variable(tolua_S,"QUAL_SHIFT",tolua_get_QUAL_SHIFT,NULL);
  2207. tolua_variable(tolua_S,"QUAL_CTRL",tolua_get_QUAL_CTRL,NULL);
  2208. tolua_variable(tolua_S,"QUAL_ALT",tolua_get_QUAL_ALT,NULL);
  2209. tolua_variable(tolua_S,"QUAL_ANY",tolua_get_QUAL_ANY,NULL);
  2210. tolua_variable(tolua_S,"KEY_A",tolua_get_KEY_A,NULL);
  2211. tolua_variable(tolua_S,"KEY_B",tolua_get_KEY_B,NULL);
  2212. tolua_variable(tolua_S,"KEY_C",tolua_get_KEY_C,NULL);
  2213. tolua_variable(tolua_S,"KEY_D",tolua_get_KEY_D,NULL);
  2214. tolua_variable(tolua_S,"KEY_E",tolua_get_KEY_E,NULL);
  2215. tolua_variable(tolua_S,"KEY_F",tolua_get_KEY_F,NULL);
  2216. tolua_variable(tolua_S,"KEY_G",tolua_get_KEY_G,NULL);
  2217. tolua_variable(tolua_S,"KEY_H",tolua_get_KEY_H,NULL);
  2218. tolua_variable(tolua_S,"KEY_I",tolua_get_KEY_I,NULL);
  2219. tolua_variable(tolua_S,"KEY_J",tolua_get_KEY_J,NULL);
  2220. tolua_variable(tolua_S,"KEY_K",tolua_get_KEY_K,NULL);
  2221. tolua_variable(tolua_S,"KEY_L",tolua_get_KEY_L,NULL);
  2222. tolua_variable(tolua_S,"KEY_M",tolua_get_KEY_M,NULL);
  2223. tolua_variable(tolua_S,"KEY_N",tolua_get_KEY_N,NULL);
  2224. tolua_variable(tolua_S,"KEY_O",tolua_get_KEY_O,NULL);
  2225. tolua_variable(tolua_S,"KEY_P",tolua_get_KEY_P,NULL);
  2226. tolua_variable(tolua_S,"KEY_Q",tolua_get_KEY_Q,NULL);
  2227. tolua_variable(tolua_S,"KEY_R",tolua_get_KEY_R,NULL);
  2228. tolua_variable(tolua_S,"KEY_S",tolua_get_KEY_S,NULL);
  2229. tolua_variable(tolua_S,"KEY_T",tolua_get_KEY_T,NULL);
  2230. tolua_variable(tolua_S,"KEY_U",tolua_get_KEY_U,NULL);
  2231. tolua_variable(tolua_S,"KEY_V",tolua_get_KEY_V,NULL);
  2232. tolua_variable(tolua_S,"KEY_W",tolua_get_KEY_W,NULL);
  2233. tolua_variable(tolua_S,"KEY_X",tolua_get_KEY_X,NULL);
  2234. tolua_variable(tolua_S,"KEY_Y",tolua_get_KEY_Y,NULL);
  2235. tolua_variable(tolua_S,"KEY_Z",tolua_get_KEY_Z,NULL);
  2236. tolua_variable(tolua_S,"KEY_BACKSPACE",tolua_get_KEY_BACKSPACE,NULL);
  2237. tolua_variable(tolua_S,"KEY_TAB",tolua_get_KEY_TAB,NULL);
  2238. tolua_variable(tolua_S,"KEY_RETURN",tolua_get_KEY_RETURN,NULL);
  2239. tolua_variable(tolua_S,"KEY_RETURN2",tolua_get_KEY_RETURN2,NULL);
  2240. tolua_variable(tolua_S,"KEY_KP_ENTER",tolua_get_KEY_KP_ENTER,NULL);
  2241. tolua_variable(tolua_S,"KEY_SHIFT",tolua_get_KEY_SHIFT,NULL);
  2242. tolua_variable(tolua_S,"KEY_CTRL",tolua_get_KEY_CTRL,NULL);
  2243. tolua_variable(tolua_S,"KEY_ALT",tolua_get_KEY_ALT,NULL);
  2244. tolua_variable(tolua_S,"KEY_PAUSE",tolua_get_KEY_PAUSE,NULL);
  2245. tolua_variable(tolua_S,"KEY_CAPSLOCK",tolua_get_KEY_CAPSLOCK,NULL);
  2246. tolua_variable(tolua_S,"KEY_ESC",tolua_get_KEY_ESC,NULL);
  2247. tolua_variable(tolua_S,"KEY_SPACE",tolua_get_KEY_SPACE,NULL);
  2248. tolua_variable(tolua_S,"KEY_PAGEUP",tolua_get_KEY_PAGEUP,NULL);
  2249. tolua_variable(tolua_S,"KEY_PAGEDOWN",tolua_get_KEY_PAGEDOWN,NULL);
  2250. tolua_variable(tolua_S,"KEY_END",tolua_get_KEY_END,NULL);
  2251. tolua_variable(tolua_S,"KEY_HOME",tolua_get_KEY_HOME,NULL);
  2252. tolua_variable(tolua_S,"KEY_LEFT",tolua_get_KEY_LEFT,NULL);
  2253. tolua_variable(tolua_S,"KEY_UP",tolua_get_KEY_UP,NULL);
  2254. tolua_variable(tolua_S,"KEY_RIGHT",tolua_get_KEY_RIGHT,NULL);
  2255. tolua_variable(tolua_S,"KEY_DOWN",tolua_get_KEY_DOWN,NULL);
  2256. tolua_variable(tolua_S,"KEY_SELECT",tolua_get_KEY_SELECT,NULL);
  2257. tolua_variable(tolua_S,"KEY_PRINTSCREEN",tolua_get_KEY_PRINTSCREEN,NULL);
  2258. tolua_variable(tolua_S,"KEY_INSERT",tolua_get_KEY_INSERT,NULL);
  2259. tolua_variable(tolua_S,"KEY_DELETE",tolua_get_KEY_DELETE,NULL);
  2260. tolua_variable(tolua_S,"KEY_LWIN",tolua_get_KEY_LWIN,NULL);
  2261. tolua_variable(tolua_S,"KEY_RWIN",tolua_get_KEY_RWIN,NULL);
  2262. tolua_variable(tolua_S,"KEY_APPS",tolua_get_KEY_APPS,NULL);
  2263. tolua_variable(tolua_S,"KEY_NUMPAD0",tolua_get_KEY_NUMPAD0,NULL);
  2264. tolua_variable(tolua_S,"KEY_NUMPAD1",tolua_get_KEY_NUMPAD1,NULL);
  2265. tolua_variable(tolua_S,"KEY_NUMPAD2",tolua_get_KEY_NUMPAD2,NULL);
  2266. tolua_variable(tolua_S,"KEY_NUMPAD3",tolua_get_KEY_NUMPAD3,NULL);
  2267. tolua_variable(tolua_S,"KEY_NUMPAD4",tolua_get_KEY_NUMPAD4,NULL);
  2268. tolua_variable(tolua_S,"KEY_NUMPAD5",tolua_get_KEY_NUMPAD5,NULL);
  2269. tolua_variable(tolua_S,"KEY_NUMPAD6",tolua_get_KEY_NUMPAD6,NULL);
  2270. tolua_variable(tolua_S,"KEY_NUMPAD7",tolua_get_KEY_NUMPAD7,NULL);
  2271. tolua_variable(tolua_S,"KEY_NUMPAD8",tolua_get_KEY_NUMPAD8,NULL);
  2272. tolua_variable(tolua_S,"KEY_NUMPAD9",tolua_get_KEY_NUMPAD9,NULL);
  2273. tolua_variable(tolua_S,"KEY_MULTIPLY",tolua_get_KEY_MULTIPLY,NULL);
  2274. tolua_variable(tolua_S,"KEY_ADD",tolua_get_KEY_ADD,NULL);
  2275. tolua_variable(tolua_S,"KEY_SUBTRACT",tolua_get_KEY_SUBTRACT,NULL);
  2276. tolua_variable(tolua_S,"KEY_DECIMAL",tolua_get_KEY_DECIMAL,NULL);
  2277. tolua_variable(tolua_S,"KEY_DIVIDE",tolua_get_KEY_DIVIDE,NULL);
  2278. tolua_variable(tolua_S,"KEY_F1",tolua_get_KEY_F1,NULL);
  2279. tolua_variable(tolua_S,"KEY_F2",tolua_get_KEY_F2,NULL);
  2280. tolua_variable(tolua_S,"KEY_F3",tolua_get_KEY_F3,NULL);
  2281. tolua_variable(tolua_S,"KEY_F4",tolua_get_KEY_F4,NULL);
  2282. tolua_variable(tolua_S,"KEY_F5",tolua_get_KEY_F5,NULL);
  2283. tolua_variable(tolua_S,"KEY_F6",tolua_get_KEY_F6,NULL);
  2284. tolua_variable(tolua_S,"KEY_F7",tolua_get_KEY_F7,NULL);
  2285. tolua_variable(tolua_S,"KEY_F8",tolua_get_KEY_F8,NULL);
  2286. tolua_variable(tolua_S,"KEY_F9",tolua_get_KEY_F9,NULL);
  2287. tolua_variable(tolua_S,"KEY_F10",tolua_get_KEY_F10,NULL);
  2288. tolua_variable(tolua_S,"KEY_F11",tolua_get_KEY_F11,NULL);
  2289. tolua_variable(tolua_S,"KEY_F12",tolua_get_KEY_F12,NULL);
  2290. tolua_variable(tolua_S,"KEY_F13",tolua_get_KEY_F13,NULL);
  2291. tolua_variable(tolua_S,"KEY_F14",tolua_get_KEY_F14,NULL);
  2292. tolua_variable(tolua_S,"KEY_F15",tolua_get_KEY_F15,NULL);
  2293. tolua_variable(tolua_S,"KEY_F16",tolua_get_KEY_F16,NULL);
  2294. tolua_variable(tolua_S,"KEY_F17",tolua_get_KEY_F17,NULL);
  2295. tolua_variable(tolua_S,"KEY_F18",tolua_get_KEY_F18,NULL);
  2296. tolua_variable(tolua_S,"KEY_F19",tolua_get_KEY_F19,NULL);
  2297. tolua_variable(tolua_S,"KEY_F20",tolua_get_KEY_F20,NULL);
  2298. tolua_variable(tolua_S,"KEY_F21",tolua_get_KEY_F21,NULL);
  2299. tolua_variable(tolua_S,"KEY_F22",tolua_get_KEY_F22,NULL);
  2300. tolua_variable(tolua_S,"KEY_F23",tolua_get_KEY_F23,NULL);
  2301. tolua_variable(tolua_S,"KEY_F24",tolua_get_KEY_F24,NULL);
  2302. tolua_variable(tolua_S,"KEY_NUMLOCK",tolua_get_KEY_NUMLOCK,NULL);
  2303. tolua_variable(tolua_S,"KEY_SCROLLLOCK",tolua_get_KEY_SCROLLLOCK,NULL);
  2304. tolua_variable(tolua_S,"KEY_LSHIFT",tolua_get_KEY_LSHIFT,NULL);
  2305. tolua_variable(tolua_S,"KEY_RSHIFT",tolua_get_KEY_RSHIFT,NULL);
  2306. tolua_variable(tolua_S,"KEY_LCTRL",tolua_get_KEY_LCTRL,NULL);
  2307. tolua_variable(tolua_S,"KEY_RCTRL",tolua_get_KEY_RCTRL,NULL);
  2308. tolua_variable(tolua_S,"KEY_LALT",tolua_get_KEY_LALT,NULL);
  2309. tolua_variable(tolua_S,"KEY_RALT",tolua_get_KEY_RALT,NULL);
  2310. tolua_variable(tolua_S,"HAT_CENTER",tolua_get_HAT_CENTER,NULL);
  2311. tolua_variable(tolua_S,"HAT_UP",tolua_get_HAT_UP,NULL);
  2312. tolua_variable(tolua_S,"HAT_RIGHT",tolua_get_HAT_RIGHT,NULL);
  2313. tolua_variable(tolua_S,"HAT_DOWN",tolua_get_HAT_DOWN,NULL);
  2314. tolua_variable(tolua_S,"HAT_LEFT",tolua_get_HAT_LEFT,NULL);
  2315. tolua_endmodule(tolua_S);
  2316. return 1;
  2317. }
  2318. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  2319. TOLUA_API int luaopen_Input (lua_State* tolua_S) {
  2320. return tolua_Input_open(tolua_S);
  2321. };
  2322. #endif