Fawkes API Fawkes Development Version
|
00001 /* 00002 ** Lua binding: interfaces_JoystickInterface 00003 ** Generated automatically by tolua++-1.0.92 00004 */ 00005 /* This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. A runtime exception applies to 00009 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Library General Public License for more details. 00015 * 00016 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00017 */ 00018 00019 #ifndef __cplusplus 00020 #include "stdlib.h" 00021 #endif 00022 #include "string.h" 00023 00024 #include "tolua++.h" 00025 00026 /* Exported function */ 00027 TOLUA_API int tolua_interfaces_JoystickInterface_open (lua_State* tolua_S); 00028 00029 #include <interfaces/JoystickInterface.h> 00030 using namespace fawkes; 00031 00032 /* function to register type */ 00033 static void tolua_reg_types (lua_State* tolua_S) 00034 { 00035 tolua_usertype(tolua_S,"Message"); 00036 tolua_usertype(tolua_S,"fawkes::JoystickInterface"); 00037 tolua_usertype(tolua_S,"Interface"); 00038 } 00039 00040 /* get function: BUTTON_1 of class fawkes::JoystickInterface */ 00041 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1 00042 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1(lua_State* tolua_S) 00043 { 00044 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_1); 00045 return 1; 00046 } 00047 #endif //#ifndef TOLUA_DISABLE 00048 00049 /* get function: BUTTON_2 of class fawkes::JoystickInterface */ 00050 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2 00051 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2(lua_State* tolua_S) 00052 { 00053 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_2); 00054 return 1; 00055 } 00056 #endif //#ifndef TOLUA_DISABLE 00057 00058 /* get function: BUTTON_3 of class fawkes::JoystickInterface */ 00059 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3 00060 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3(lua_State* tolua_S) 00061 { 00062 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_3); 00063 return 1; 00064 } 00065 #endif //#ifndef TOLUA_DISABLE 00066 00067 /* get function: BUTTON_4 of class fawkes::JoystickInterface */ 00068 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4 00069 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4(lua_State* tolua_S) 00070 { 00071 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_4); 00072 return 1; 00073 } 00074 #endif //#ifndef TOLUA_DISABLE 00075 00076 /* get function: BUTTON_5 of class fawkes::JoystickInterface */ 00077 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5 00078 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5(lua_State* tolua_S) 00079 { 00080 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_5); 00081 return 1; 00082 } 00083 #endif //#ifndef TOLUA_DISABLE 00084 00085 /* get function: BUTTON_6 of class fawkes::JoystickInterface */ 00086 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6 00087 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6(lua_State* tolua_S) 00088 { 00089 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_6); 00090 return 1; 00091 } 00092 #endif //#ifndef TOLUA_DISABLE 00093 00094 /* get function: BUTTON_7 of class fawkes::JoystickInterface */ 00095 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7 00096 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7(lua_State* tolua_S) 00097 { 00098 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_7); 00099 return 1; 00100 } 00101 #endif //#ifndef TOLUA_DISABLE 00102 00103 /* get function: BUTTON_8 of class fawkes::JoystickInterface */ 00104 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8 00105 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8(lua_State* tolua_S) 00106 { 00107 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_8); 00108 return 1; 00109 } 00110 #endif //#ifndef TOLUA_DISABLE 00111 00112 /* get function: BUTTON_9 of class fawkes::JoystickInterface */ 00113 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9 00114 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9(lua_State* tolua_S) 00115 { 00116 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_9); 00117 return 1; 00118 } 00119 #endif //#ifndef TOLUA_DISABLE 00120 00121 /* get function: BUTTON_10 of class fawkes::JoystickInterface */ 00122 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10 00123 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10(lua_State* tolua_S) 00124 { 00125 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_10); 00126 return 1; 00127 } 00128 #endif //#ifndef TOLUA_DISABLE 00129 00130 /* get function: BUTTON_11 of class fawkes::JoystickInterface */ 00131 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11 00132 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11(lua_State* tolua_S) 00133 { 00134 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_11); 00135 return 1; 00136 } 00137 #endif //#ifndef TOLUA_DISABLE 00138 00139 /* get function: BUTTON_12 of class fawkes::JoystickInterface */ 00140 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12 00141 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12(lua_State* tolua_S) 00142 { 00143 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_12); 00144 return 1; 00145 } 00146 #endif //#ifndef TOLUA_DISABLE 00147 00148 /* get function: BUTTON_13 of class fawkes::JoystickInterface */ 00149 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13 00150 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13(lua_State* tolua_S) 00151 { 00152 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_13); 00153 return 1; 00154 } 00155 #endif //#ifndef TOLUA_DISABLE 00156 00157 /* get function: BUTTON_14 of class fawkes::JoystickInterface */ 00158 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14 00159 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14(lua_State* tolua_S) 00160 { 00161 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_14); 00162 return 1; 00163 } 00164 #endif //#ifndef TOLUA_DISABLE 00165 00166 /* get function: BUTTON_15 of class fawkes::JoystickInterface */ 00167 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15 00168 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15(lua_State* tolua_S) 00169 { 00170 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_15); 00171 return 1; 00172 } 00173 #endif //#ifndef TOLUA_DISABLE 00174 00175 /* get function: BUTTON_16 of class fawkes::JoystickInterface */ 00176 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16 00177 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16(lua_State* tolua_S) 00178 { 00179 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_16); 00180 return 1; 00181 } 00182 #endif //#ifndef TOLUA_DISABLE 00183 00184 /* get function: BUTTON_17 of class fawkes::JoystickInterface */ 00185 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17 00186 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17(lua_State* tolua_S) 00187 { 00188 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_17); 00189 return 1; 00190 } 00191 #endif //#ifndef TOLUA_DISABLE 00192 00193 /* get function: BUTTON_18 of class fawkes::JoystickInterface */ 00194 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18 00195 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18(lua_State* tolua_S) 00196 { 00197 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_18); 00198 return 1; 00199 } 00200 #endif //#ifndef TOLUA_DISABLE 00201 00202 /* get function: BUTTON_19 of class fawkes::JoystickInterface */ 00203 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19 00204 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19(lua_State* tolua_S) 00205 { 00206 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_19); 00207 return 1; 00208 } 00209 #endif //#ifndef TOLUA_DISABLE 00210 00211 /* get function: BUTTON_20 of class fawkes::JoystickInterface */ 00212 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20 00213 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20(lua_State* tolua_S) 00214 { 00215 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_20); 00216 return 1; 00217 } 00218 #endif //#ifndef TOLUA_DISABLE 00219 00220 /* get function: BUTTON_21 of class fawkes::JoystickInterface */ 00221 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21 00222 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21(lua_State* tolua_S) 00223 { 00224 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_21); 00225 return 1; 00226 } 00227 #endif //#ifndef TOLUA_DISABLE 00228 00229 /* get function: BUTTON_22 of class fawkes::JoystickInterface */ 00230 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22 00231 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22(lua_State* tolua_S) 00232 { 00233 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_22); 00234 return 1; 00235 } 00236 #endif //#ifndef TOLUA_DISABLE 00237 00238 /* get function: BUTTON_23 of class fawkes::JoystickInterface */ 00239 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23 00240 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23(lua_State* tolua_S) 00241 { 00242 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_23); 00243 return 1; 00244 } 00245 #endif //#ifndef TOLUA_DISABLE 00246 00247 /* get function: BUTTON_24 of class fawkes::JoystickInterface */ 00248 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24 00249 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24(lua_State* tolua_S) 00250 { 00251 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_24); 00252 return 1; 00253 } 00254 #endif //#ifndef TOLUA_DISABLE 00255 00256 /* get function: BUTTON_25 of class fawkes::JoystickInterface */ 00257 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25 00258 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25(lua_State* tolua_S) 00259 { 00260 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_25); 00261 return 1; 00262 } 00263 #endif //#ifndef TOLUA_DISABLE 00264 00265 /* get function: BUTTON_26 of class fawkes::JoystickInterface */ 00266 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26 00267 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26(lua_State* tolua_S) 00268 { 00269 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_26); 00270 return 1; 00271 } 00272 #endif //#ifndef TOLUA_DISABLE 00273 00274 /* get function: BUTTON_27 of class fawkes::JoystickInterface */ 00275 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27 00276 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27(lua_State* tolua_S) 00277 { 00278 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_27); 00279 return 1; 00280 } 00281 #endif //#ifndef TOLUA_DISABLE 00282 00283 /* get function: BUTTON_28 of class fawkes::JoystickInterface */ 00284 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28 00285 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28(lua_State* tolua_S) 00286 { 00287 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_28); 00288 return 1; 00289 } 00290 #endif //#ifndef TOLUA_DISABLE 00291 00292 /* get function: BUTTON_29 of class fawkes::JoystickInterface */ 00293 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29 00294 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29(lua_State* tolua_S) 00295 { 00296 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_29); 00297 return 1; 00298 } 00299 #endif //#ifndef TOLUA_DISABLE 00300 00301 /* get function: BUTTON_30 of class fawkes::JoystickInterface */ 00302 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30 00303 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30(lua_State* tolua_S) 00304 { 00305 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_30); 00306 return 1; 00307 } 00308 #endif //#ifndef TOLUA_DISABLE 00309 00310 /* get function: BUTTON_31 of class fawkes::JoystickInterface */ 00311 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31 00312 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31(lua_State* tolua_S) 00313 { 00314 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_31); 00315 return 1; 00316 } 00317 #endif //#ifndef TOLUA_DISABLE 00318 00319 /* get function: BUTTON_32 of class fawkes::JoystickInterface */ 00320 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32 00321 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32(lua_State* tolua_S) 00322 { 00323 tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_32); 00324 return 1; 00325 } 00326 #endif //#ifndef TOLUA_DISABLE 00327 00328 /* method: num_axes of class fawkes::JoystickInterface */ 00329 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00 00330 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00(lua_State* tolua_S) 00331 { 00332 #ifndef TOLUA_RELEASE 00333 tolua_Error tolua_err; 00334 if ( 00335 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00336 !tolua_isnoobj(tolua_S,2,&tolua_err) 00337 ) 00338 goto tolua_lerror; 00339 else 00340 #endif 00341 { 00342 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00343 #ifndef TOLUA_RELEASE 00344 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_axes'", NULL); 00345 #endif 00346 { 00347 unsigned char tolua_ret = (unsigned char) self->num_axes(); 00348 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00349 } 00350 } 00351 return 1; 00352 #ifndef TOLUA_RELEASE 00353 tolua_lerror: 00354 tolua_error(tolua_S,"#ferror in function 'num_axes'.",&tolua_err); 00355 return 0; 00356 #endif 00357 } 00358 #endif //#ifndef TOLUA_DISABLE 00359 00360 /* method: set_num_axes of class fawkes::JoystickInterface */ 00361 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00 00362 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00(lua_State* tolua_S) 00363 { 00364 #ifndef TOLUA_RELEASE 00365 tolua_Error tolua_err; 00366 if ( 00367 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00368 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00369 !tolua_isnoobj(tolua_S,3,&tolua_err) 00370 ) 00371 goto tolua_lerror; 00372 else 00373 #endif 00374 { 00375 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00376 unsigned const char new_num_axes = ((unsigned const char) tolua_tonumber(tolua_S,2,0)); 00377 #ifndef TOLUA_RELEASE 00378 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_num_axes'", NULL); 00379 #endif 00380 { 00381 self->set_num_axes(new_num_axes); 00382 } 00383 } 00384 return 0; 00385 #ifndef TOLUA_RELEASE 00386 tolua_lerror: 00387 tolua_error(tolua_S,"#ferror in function 'set_num_axes'.",&tolua_err); 00388 return 0; 00389 #endif 00390 } 00391 #endif //#ifndef TOLUA_DISABLE 00392 00393 /* method: maxlenof_num_axes of class fawkes::JoystickInterface */ 00394 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00 00395 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00(lua_State* tolua_S) 00396 { 00397 #ifndef TOLUA_RELEASE 00398 tolua_Error tolua_err; 00399 if ( 00400 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00401 !tolua_isnoobj(tolua_S,2,&tolua_err) 00402 ) 00403 goto tolua_lerror; 00404 else 00405 #endif 00406 { 00407 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00408 #ifndef TOLUA_RELEASE 00409 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_num_axes'", NULL); 00410 #endif 00411 { 00412 int tolua_ret = (int) self->maxlenof_num_axes(); 00413 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00414 } 00415 } 00416 return 1; 00417 #ifndef TOLUA_RELEASE 00418 tolua_lerror: 00419 tolua_error(tolua_S,"#ferror in function 'maxlenof_num_axes'.",&tolua_err); 00420 return 0; 00421 #endif 00422 } 00423 #endif //#ifndef TOLUA_DISABLE 00424 00425 /* method: num_buttons of class fawkes::JoystickInterface */ 00426 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00 00427 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00(lua_State* tolua_S) 00428 { 00429 #ifndef TOLUA_RELEASE 00430 tolua_Error tolua_err; 00431 if ( 00432 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00433 !tolua_isnoobj(tolua_S,2,&tolua_err) 00434 ) 00435 goto tolua_lerror; 00436 else 00437 #endif 00438 { 00439 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00440 #ifndef TOLUA_RELEASE 00441 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_buttons'", NULL); 00442 #endif 00443 { 00444 unsigned char tolua_ret = (unsigned char) self->num_buttons(); 00445 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00446 } 00447 } 00448 return 1; 00449 #ifndef TOLUA_RELEASE 00450 tolua_lerror: 00451 tolua_error(tolua_S,"#ferror in function 'num_buttons'.",&tolua_err); 00452 return 0; 00453 #endif 00454 } 00455 #endif //#ifndef TOLUA_DISABLE 00456 00457 /* method: set_num_buttons of class fawkes::JoystickInterface */ 00458 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00 00459 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00(lua_State* tolua_S) 00460 { 00461 #ifndef TOLUA_RELEASE 00462 tolua_Error tolua_err; 00463 if ( 00464 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00465 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00466 !tolua_isnoobj(tolua_S,3,&tolua_err) 00467 ) 00468 goto tolua_lerror; 00469 else 00470 #endif 00471 { 00472 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00473 unsigned const char new_num_buttons = ((unsigned const char) tolua_tonumber(tolua_S,2,0)); 00474 #ifndef TOLUA_RELEASE 00475 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_num_buttons'", NULL); 00476 #endif 00477 { 00478 self->set_num_buttons(new_num_buttons); 00479 } 00480 } 00481 return 0; 00482 #ifndef TOLUA_RELEASE 00483 tolua_lerror: 00484 tolua_error(tolua_S,"#ferror in function 'set_num_buttons'.",&tolua_err); 00485 return 0; 00486 #endif 00487 } 00488 #endif //#ifndef TOLUA_DISABLE 00489 00490 /* method: maxlenof_num_buttons of class fawkes::JoystickInterface */ 00491 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00 00492 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00(lua_State* tolua_S) 00493 { 00494 #ifndef TOLUA_RELEASE 00495 tolua_Error tolua_err; 00496 if ( 00497 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00498 !tolua_isnoobj(tolua_S,2,&tolua_err) 00499 ) 00500 goto tolua_lerror; 00501 else 00502 #endif 00503 { 00504 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00505 #ifndef TOLUA_RELEASE 00506 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_num_buttons'", NULL); 00507 #endif 00508 { 00509 int tolua_ret = (int) self->maxlenof_num_buttons(); 00510 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00511 } 00512 } 00513 return 1; 00514 #ifndef TOLUA_RELEASE 00515 tolua_lerror: 00516 tolua_error(tolua_S,"#ferror in function 'maxlenof_num_buttons'.",&tolua_err); 00517 return 0; 00518 #endif 00519 } 00520 #endif //#ifndef TOLUA_DISABLE 00521 00522 /* method: pressed_buttons of class fawkes::JoystickInterface */ 00523 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00 00524 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00(lua_State* tolua_S) 00525 { 00526 #ifndef TOLUA_RELEASE 00527 tolua_Error tolua_err; 00528 if ( 00529 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00530 !tolua_isnoobj(tolua_S,2,&tolua_err) 00531 ) 00532 goto tolua_lerror; 00533 else 00534 #endif 00535 { 00536 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00537 #ifndef TOLUA_RELEASE 00538 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pressed_buttons'", NULL); 00539 #endif 00540 { 00541 unsigned int tolua_ret = (unsigned int) self->pressed_buttons(); 00542 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00543 } 00544 } 00545 return 1; 00546 #ifndef TOLUA_RELEASE 00547 tolua_lerror: 00548 tolua_error(tolua_S,"#ferror in function 'pressed_buttons'.",&tolua_err); 00549 return 0; 00550 #endif 00551 } 00552 #endif //#ifndef TOLUA_DISABLE 00553 00554 /* method: set_pressed_buttons of class fawkes::JoystickInterface */ 00555 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00 00556 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00(lua_State* tolua_S) 00557 { 00558 #ifndef TOLUA_RELEASE 00559 tolua_Error tolua_err; 00560 if ( 00561 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00562 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00563 !tolua_isnoobj(tolua_S,3,&tolua_err) 00564 ) 00565 goto tolua_lerror; 00566 else 00567 #endif 00568 { 00569 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00570 unsigned const int new_pressed_buttons = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 00571 #ifndef TOLUA_RELEASE 00572 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_pressed_buttons'", NULL); 00573 #endif 00574 { 00575 self->set_pressed_buttons(new_pressed_buttons); 00576 } 00577 } 00578 return 0; 00579 #ifndef TOLUA_RELEASE 00580 tolua_lerror: 00581 tolua_error(tolua_S,"#ferror in function 'set_pressed_buttons'.",&tolua_err); 00582 return 0; 00583 #endif 00584 } 00585 #endif //#ifndef TOLUA_DISABLE 00586 00587 /* method: maxlenof_pressed_buttons of class fawkes::JoystickInterface */ 00588 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00 00589 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00(lua_State* tolua_S) 00590 { 00591 #ifndef TOLUA_RELEASE 00592 tolua_Error tolua_err; 00593 if ( 00594 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00595 !tolua_isnoobj(tolua_S,2,&tolua_err) 00596 ) 00597 goto tolua_lerror; 00598 else 00599 #endif 00600 { 00601 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00602 #ifndef TOLUA_RELEASE 00603 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_pressed_buttons'", NULL); 00604 #endif 00605 { 00606 int tolua_ret = (int) self->maxlenof_pressed_buttons(); 00607 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00608 } 00609 } 00610 return 1; 00611 #ifndef TOLUA_RELEASE 00612 tolua_lerror: 00613 tolua_error(tolua_S,"#ferror in function 'maxlenof_pressed_buttons'.",&tolua_err); 00614 return 0; 00615 #endif 00616 } 00617 #endif //#ifndef TOLUA_DISABLE 00618 00619 /* method: axis_x of class fawkes::JoystickInterface */ 00620 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_x00 00621 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_x00(lua_State* tolua_S) 00622 { 00623 #ifndef TOLUA_RELEASE 00624 tolua_Error tolua_err; 00625 if ( 00626 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00627 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00628 !tolua_isnoobj(tolua_S,3,&tolua_err) 00629 ) 00630 goto tolua_lerror; 00631 else 00632 #endif 00633 { 00634 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00635 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00636 #ifndef TOLUA_RELEASE 00637 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'axis_x'", NULL); 00638 #endif 00639 { 00640 float tolua_ret = (float) self->axis_x(index); 00641 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00642 } 00643 } 00644 return 1; 00645 #ifndef TOLUA_RELEASE 00646 tolua_lerror: 00647 tolua_error(tolua_S,"#ferror in function 'axis_x'.",&tolua_err); 00648 return 0; 00649 #endif 00650 } 00651 #endif //#ifndef TOLUA_DISABLE 00652 00653 /* method: set_axis_x of class fawkes::JoystickInterface */ 00654 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_x00 00655 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_x00(lua_State* tolua_S) 00656 { 00657 #ifndef TOLUA_RELEASE 00658 tolua_Error tolua_err; 00659 if ( 00660 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00661 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00662 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00663 !tolua_isnoobj(tolua_S,4,&tolua_err) 00664 ) 00665 goto tolua_lerror; 00666 else 00667 #endif 00668 { 00669 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00670 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00671 const float new_axis_x = ((const float) tolua_tonumber(tolua_S,3,0)); 00672 #ifndef TOLUA_RELEASE 00673 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_axis_x'", NULL); 00674 #endif 00675 { 00676 self->set_axis_x(index,new_axis_x); 00677 } 00678 } 00679 return 0; 00680 #ifndef TOLUA_RELEASE 00681 tolua_lerror: 00682 tolua_error(tolua_S,"#ferror in function 'set_axis_x'.",&tolua_err); 00683 return 0; 00684 #endif 00685 } 00686 #endif //#ifndef TOLUA_DISABLE 00687 00688 /* method: maxlenof_axis_x of class fawkes::JoystickInterface */ 00689 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_x00 00690 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_x00(lua_State* tolua_S) 00691 { 00692 #ifndef TOLUA_RELEASE 00693 tolua_Error tolua_err; 00694 if ( 00695 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00696 !tolua_isnoobj(tolua_S,2,&tolua_err) 00697 ) 00698 goto tolua_lerror; 00699 else 00700 #endif 00701 { 00702 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00703 #ifndef TOLUA_RELEASE 00704 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_axis_x'", NULL); 00705 #endif 00706 { 00707 int tolua_ret = (int) self->maxlenof_axis_x(); 00708 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00709 } 00710 } 00711 return 1; 00712 #ifndef TOLUA_RELEASE 00713 tolua_lerror: 00714 tolua_error(tolua_S,"#ferror in function 'maxlenof_axis_x'.",&tolua_err); 00715 return 0; 00716 #endif 00717 } 00718 #endif //#ifndef TOLUA_DISABLE 00719 00720 /* method: axis_y of class fawkes::JoystickInterface */ 00721 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_y00 00722 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_y00(lua_State* tolua_S) 00723 { 00724 #ifndef TOLUA_RELEASE 00725 tolua_Error tolua_err; 00726 if ( 00727 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00728 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00729 !tolua_isnoobj(tolua_S,3,&tolua_err) 00730 ) 00731 goto tolua_lerror; 00732 else 00733 #endif 00734 { 00735 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00736 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00737 #ifndef TOLUA_RELEASE 00738 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'axis_y'", NULL); 00739 #endif 00740 { 00741 float tolua_ret = (float) self->axis_y(index); 00742 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00743 } 00744 } 00745 return 1; 00746 #ifndef TOLUA_RELEASE 00747 tolua_lerror: 00748 tolua_error(tolua_S,"#ferror in function 'axis_y'.",&tolua_err); 00749 return 0; 00750 #endif 00751 } 00752 #endif //#ifndef TOLUA_DISABLE 00753 00754 /* method: set_axis_y of class fawkes::JoystickInterface */ 00755 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_y00 00756 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_y00(lua_State* tolua_S) 00757 { 00758 #ifndef TOLUA_RELEASE 00759 tolua_Error tolua_err; 00760 if ( 00761 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 00762 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00763 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00764 !tolua_isnoobj(tolua_S,4,&tolua_err) 00765 ) 00766 goto tolua_lerror; 00767 else 00768 #endif 00769 { 00770 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00771 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00772 const float new_axis_y = ((const float) tolua_tonumber(tolua_S,3,0)); 00773 #ifndef TOLUA_RELEASE 00774 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_axis_y'", NULL); 00775 #endif 00776 { 00777 self->set_axis_y(index,new_axis_y); 00778 } 00779 } 00780 return 0; 00781 #ifndef TOLUA_RELEASE 00782 tolua_lerror: 00783 tolua_error(tolua_S,"#ferror in function 'set_axis_y'.",&tolua_err); 00784 return 0; 00785 #endif 00786 } 00787 #endif //#ifndef TOLUA_DISABLE 00788 00789 /* method: maxlenof_axis_y of class fawkes::JoystickInterface */ 00790 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_y00 00791 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_y00(lua_State* tolua_S) 00792 { 00793 #ifndef TOLUA_RELEASE 00794 tolua_Error tolua_err; 00795 if ( 00796 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00797 !tolua_isnoobj(tolua_S,2,&tolua_err) 00798 ) 00799 goto tolua_lerror; 00800 else 00801 #endif 00802 { 00803 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00804 #ifndef TOLUA_RELEASE 00805 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_axis_y'", NULL); 00806 #endif 00807 { 00808 int tolua_ret = (int) self->maxlenof_axis_y(); 00809 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00810 } 00811 } 00812 return 1; 00813 #ifndef TOLUA_RELEASE 00814 tolua_lerror: 00815 tolua_error(tolua_S,"#ferror in function 'maxlenof_axis_y'.",&tolua_err); 00816 return 0; 00817 #endif 00818 } 00819 #endif //#ifndef TOLUA_DISABLE 00820 00821 /* method: oftype of class fawkes::JoystickInterface */ 00822 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00 00823 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00(lua_State* tolua_S) 00824 { 00825 #ifndef TOLUA_RELEASE 00826 tolua_Error tolua_err; 00827 if ( 00828 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00829 !tolua_isstring(tolua_S,2,0,&tolua_err) || 00830 !tolua_isnoobj(tolua_S,3,&tolua_err) 00831 ) 00832 goto tolua_lerror; 00833 else 00834 #endif 00835 { 00836 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00837 const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0)); 00838 #ifndef TOLUA_RELEASE 00839 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL); 00840 #endif 00841 { 00842 bool tolua_ret = (bool) self->oftype(interface_type); 00843 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00844 } 00845 } 00846 return 1; 00847 #ifndef TOLUA_RELEASE 00848 tolua_lerror: 00849 tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err); 00850 return 0; 00851 #endif 00852 } 00853 #endif //#ifndef TOLUA_DISABLE 00854 00855 /* method: datachunk of class fawkes::JoystickInterface */ 00856 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00 00857 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00(lua_State* tolua_S) 00858 { 00859 #ifndef TOLUA_RELEASE 00860 tolua_Error tolua_err; 00861 if ( 00862 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00863 !tolua_isnoobj(tolua_S,2,&tolua_err) 00864 ) 00865 goto tolua_lerror; 00866 else 00867 #endif 00868 { 00869 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00870 #ifndef TOLUA_RELEASE 00871 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL); 00872 #endif 00873 { 00874 const void* tolua_ret = (const void*) self->datachunk(); 00875 tolua_pushuserdata(tolua_S,(void*)tolua_ret); 00876 } 00877 } 00878 return 1; 00879 #ifndef TOLUA_RELEASE 00880 tolua_lerror: 00881 tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err); 00882 return 0; 00883 #endif 00884 } 00885 #endif //#ifndef TOLUA_DISABLE 00886 00887 /* method: datasize of class fawkes::JoystickInterface */ 00888 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00 00889 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00(lua_State* tolua_S) 00890 { 00891 #ifndef TOLUA_RELEASE 00892 tolua_Error tolua_err; 00893 if ( 00894 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00895 !tolua_isnoobj(tolua_S,2,&tolua_err) 00896 ) 00897 goto tolua_lerror; 00898 else 00899 #endif 00900 { 00901 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00902 #ifndef TOLUA_RELEASE 00903 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL); 00904 #endif 00905 { 00906 unsigned int tolua_ret = (unsigned int) self->datasize(); 00907 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00908 } 00909 } 00910 return 1; 00911 #ifndef TOLUA_RELEASE 00912 tolua_lerror: 00913 tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err); 00914 return 0; 00915 #endif 00916 } 00917 #endif //#ifndef TOLUA_DISABLE 00918 00919 /* method: type of class fawkes::JoystickInterface */ 00920 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00 00921 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00(lua_State* tolua_S) 00922 { 00923 #ifndef TOLUA_RELEASE 00924 tolua_Error tolua_err; 00925 if ( 00926 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00927 !tolua_isnoobj(tolua_S,2,&tolua_err) 00928 ) 00929 goto tolua_lerror; 00930 else 00931 #endif 00932 { 00933 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00934 #ifndef TOLUA_RELEASE 00935 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL); 00936 #endif 00937 { 00938 const char* tolua_ret = (const char*) self->type(); 00939 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00940 } 00941 } 00942 return 1; 00943 #ifndef TOLUA_RELEASE 00944 tolua_lerror: 00945 tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err); 00946 return 0; 00947 #endif 00948 } 00949 #endif //#ifndef TOLUA_DISABLE 00950 00951 /* method: id of class fawkes::JoystickInterface */ 00952 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00 00953 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00(lua_State* tolua_S) 00954 { 00955 #ifndef TOLUA_RELEASE 00956 tolua_Error tolua_err; 00957 if ( 00958 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00959 !tolua_isnoobj(tolua_S,2,&tolua_err) 00960 ) 00961 goto tolua_lerror; 00962 else 00963 #endif 00964 { 00965 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00966 #ifndef TOLUA_RELEASE 00967 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL); 00968 #endif 00969 { 00970 const char* tolua_ret = (const char*) self->id(); 00971 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00972 } 00973 } 00974 return 1; 00975 #ifndef TOLUA_RELEASE 00976 tolua_lerror: 00977 tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err); 00978 return 0; 00979 #endif 00980 } 00981 #endif //#ifndef TOLUA_DISABLE 00982 00983 /* method: uid of class fawkes::JoystickInterface */ 00984 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00 00985 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00(lua_State* tolua_S) 00986 { 00987 #ifndef TOLUA_RELEASE 00988 tolua_Error tolua_err; 00989 if ( 00990 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 00991 !tolua_isnoobj(tolua_S,2,&tolua_err) 00992 ) 00993 goto tolua_lerror; 00994 else 00995 #endif 00996 { 00997 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 00998 #ifndef TOLUA_RELEASE 00999 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL); 01000 #endif 01001 { 01002 const char* tolua_ret = (const char*) self->uid(); 01003 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01004 } 01005 } 01006 return 1; 01007 #ifndef TOLUA_RELEASE 01008 tolua_lerror: 01009 tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err); 01010 return 0; 01011 #endif 01012 } 01013 #endif //#ifndef TOLUA_DISABLE 01014 01015 /* method: serial of class fawkes::JoystickInterface */ 01016 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00 01017 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00(lua_State* tolua_S) 01018 { 01019 #ifndef TOLUA_RELEASE 01020 tolua_Error tolua_err; 01021 if ( 01022 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01023 !tolua_isnoobj(tolua_S,2,&tolua_err) 01024 ) 01025 goto tolua_lerror; 01026 else 01027 #endif 01028 { 01029 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01030 #ifndef TOLUA_RELEASE 01031 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL); 01032 #endif 01033 { 01034 unsigned int tolua_ret = (unsigned int) self->serial(); 01035 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01036 } 01037 } 01038 return 1; 01039 #ifndef TOLUA_RELEASE 01040 tolua_lerror: 01041 tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err); 01042 return 0; 01043 #endif 01044 } 01045 #endif //#ifndef TOLUA_DISABLE 01046 01047 /* method: mem_serial of class fawkes::JoystickInterface */ 01048 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00 01049 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00(lua_State* tolua_S) 01050 { 01051 #ifndef TOLUA_RELEASE 01052 tolua_Error tolua_err; 01053 if ( 01054 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01055 !tolua_isnoobj(tolua_S,2,&tolua_err) 01056 ) 01057 goto tolua_lerror; 01058 else 01059 #endif 01060 { 01061 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01062 #ifndef TOLUA_RELEASE 01063 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL); 01064 #endif 01065 { 01066 unsigned int tolua_ret = (unsigned int) self->mem_serial(); 01067 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01068 } 01069 } 01070 return 1; 01071 #ifndef TOLUA_RELEASE 01072 tolua_lerror: 01073 tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err); 01074 return 0; 01075 #endif 01076 } 01077 #endif //#ifndef TOLUA_DISABLE 01078 01079 /* method: operator== of class fawkes::JoystickInterface */ 01080 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00 01081 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00(lua_State* tolua_S) 01082 { 01083 #ifndef TOLUA_RELEASE 01084 tolua_Error tolua_err; 01085 if ( 01086 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01087 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err)) || 01088 !tolua_isnoobj(tolua_S,3,&tolua_err) 01089 ) 01090 goto tolua_lerror; 01091 else 01092 #endif 01093 { 01094 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01095 Interface* comp = ((Interface*) tolua_tousertype(tolua_S,2,0)); 01096 #ifndef TOLUA_RELEASE 01097 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL); 01098 #endif 01099 { 01100 bool tolua_ret = (bool) self->operator==(*comp); 01101 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01102 } 01103 } 01104 return 1; 01105 #ifndef TOLUA_RELEASE 01106 tolua_lerror: 01107 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err); 01108 return 0; 01109 #endif 01110 } 01111 #endif //#ifndef TOLUA_DISABLE 01112 01113 /* method: hash of class fawkes::JoystickInterface */ 01114 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00 01115 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00(lua_State* tolua_S) 01116 { 01117 #ifndef TOLUA_RELEASE 01118 tolua_Error tolua_err; 01119 if ( 01120 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01121 !tolua_isnoobj(tolua_S,2,&tolua_err) 01122 ) 01123 goto tolua_lerror; 01124 else 01125 #endif 01126 { 01127 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01128 #ifndef TOLUA_RELEASE 01129 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL); 01130 #endif 01131 { 01132 unsigned const char* tolua_ret = ( unsigned const char*) self->hash(); 01133 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01134 } 01135 } 01136 return 1; 01137 #ifndef TOLUA_RELEASE 01138 tolua_lerror: 01139 tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err); 01140 return 0; 01141 #endif 01142 } 01143 #endif //#ifndef TOLUA_DISABLE 01144 01145 /* method: hash_size of class fawkes::JoystickInterface */ 01146 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00 01147 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00(lua_State* tolua_S) 01148 { 01149 #ifndef TOLUA_RELEASE 01150 tolua_Error tolua_err; 01151 if ( 01152 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01153 !tolua_isnoobj(tolua_S,2,&tolua_err) 01154 ) 01155 goto tolua_lerror; 01156 else 01157 #endif 01158 { 01159 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01160 #ifndef TOLUA_RELEASE 01161 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL); 01162 #endif 01163 { 01164 int tolua_ret = (int) self->hash_size(); 01165 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01166 } 01167 } 01168 return 1; 01169 #ifndef TOLUA_RELEASE 01170 tolua_lerror: 01171 tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err); 01172 return 0; 01173 #endif 01174 } 01175 #endif //#ifndef TOLUA_DISABLE 01176 01177 /* method: hash_printable of class fawkes::JoystickInterface */ 01178 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00 01179 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00(lua_State* tolua_S) 01180 { 01181 #ifndef TOLUA_RELEASE 01182 tolua_Error tolua_err; 01183 if ( 01184 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01185 !tolua_isnoobj(tolua_S,2,&tolua_err) 01186 ) 01187 goto tolua_lerror; 01188 else 01189 #endif 01190 { 01191 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01192 #ifndef TOLUA_RELEASE 01193 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL); 01194 #endif 01195 { 01196 const char* tolua_ret = (const char*) self->hash_printable(); 01197 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01198 } 01199 } 01200 return 1; 01201 #ifndef TOLUA_RELEASE 01202 tolua_lerror: 01203 tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err); 01204 return 0; 01205 #endif 01206 } 01207 #endif //#ifndef TOLUA_DISABLE 01208 01209 /* method: is_writer of class fawkes::JoystickInterface */ 01210 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00 01211 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00(lua_State* tolua_S) 01212 { 01213 #ifndef TOLUA_RELEASE 01214 tolua_Error tolua_err; 01215 if ( 01216 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01217 !tolua_isnoobj(tolua_S,2,&tolua_err) 01218 ) 01219 goto tolua_lerror; 01220 else 01221 #endif 01222 { 01223 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01224 #ifndef TOLUA_RELEASE 01225 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL); 01226 #endif 01227 { 01228 bool tolua_ret = (bool) self->is_writer(); 01229 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01230 } 01231 } 01232 return 1; 01233 #ifndef TOLUA_RELEASE 01234 tolua_lerror: 01235 tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err); 01236 return 0; 01237 #endif 01238 } 01239 #endif //#ifndef TOLUA_DISABLE 01240 01241 /* method: set_from_chunk of class fawkes::JoystickInterface */ 01242 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00 01243 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00(lua_State* tolua_S) 01244 { 01245 #ifndef TOLUA_RELEASE 01246 tolua_Error tolua_err; 01247 if ( 01248 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01249 !tolua_isuserdata(tolua_S,2,0,&tolua_err) || 01250 !tolua_isnoobj(tolua_S,3,&tolua_err) 01251 ) 01252 goto tolua_lerror; 01253 else 01254 #endif 01255 { 01256 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01257 void* chunk = ((void*) tolua_touserdata(tolua_S,2,0)); 01258 #ifndef TOLUA_RELEASE 01259 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL); 01260 #endif 01261 { 01262 self->set_from_chunk(chunk); 01263 } 01264 } 01265 return 0; 01266 #ifndef TOLUA_RELEASE 01267 tolua_lerror: 01268 tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err); 01269 return 0; 01270 #endif 01271 } 01272 #endif //#ifndef TOLUA_DISABLE 01273 01274 /* method: create_message of class fawkes::JoystickInterface */ 01275 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00 01276 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00(lua_State* tolua_S) 01277 { 01278 #ifndef TOLUA_RELEASE 01279 tolua_Error tolua_err; 01280 if ( 01281 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01282 !tolua_isstring(tolua_S,2,0,&tolua_err) || 01283 !tolua_isnoobj(tolua_S,3,&tolua_err) 01284 ) 01285 goto tolua_lerror; 01286 else 01287 #endif 01288 { 01289 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01290 const char* type = ((const char*) tolua_tostring(tolua_S,2,0)); 01291 #ifndef TOLUA_RELEASE 01292 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL); 01293 #endif 01294 { 01295 Message* tolua_ret = (Message*) self->create_message(type); 01296 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 01297 } 01298 } 01299 return 1; 01300 #ifndef TOLUA_RELEASE 01301 tolua_lerror: 01302 tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err); 01303 return 0; 01304 #endif 01305 } 01306 #endif //#ifndef TOLUA_DISABLE 01307 01308 /* method: read of class fawkes::JoystickInterface */ 01309 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00 01310 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00(lua_State* tolua_S) 01311 { 01312 #ifndef TOLUA_RELEASE 01313 tolua_Error tolua_err; 01314 if ( 01315 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01316 !tolua_isnoobj(tolua_S,2,&tolua_err) 01317 ) 01318 goto tolua_lerror; 01319 else 01320 #endif 01321 { 01322 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01323 #ifndef TOLUA_RELEASE 01324 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL); 01325 #endif 01326 { 01327 self->read(); 01328 } 01329 } 01330 return 0; 01331 #ifndef TOLUA_RELEASE 01332 tolua_lerror: 01333 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err); 01334 return 0; 01335 #endif 01336 } 01337 #endif //#ifndef TOLUA_DISABLE 01338 01339 /* method: write of class fawkes::JoystickInterface */ 01340 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00 01341 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00(lua_State* tolua_S) 01342 { 01343 #ifndef TOLUA_RELEASE 01344 tolua_Error tolua_err; 01345 if ( 01346 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01347 !tolua_isnoobj(tolua_S,2,&tolua_err) 01348 ) 01349 goto tolua_lerror; 01350 else 01351 #endif 01352 { 01353 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01354 #ifndef TOLUA_RELEASE 01355 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL); 01356 #endif 01357 { 01358 self->write(); 01359 } 01360 } 01361 return 0; 01362 #ifndef TOLUA_RELEASE 01363 tolua_lerror: 01364 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err); 01365 return 0; 01366 #endif 01367 } 01368 #endif //#ifndef TOLUA_DISABLE 01369 01370 /* method: has_writer of class fawkes::JoystickInterface */ 01371 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00 01372 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00(lua_State* tolua_S) 01373 { 01374 #ifndef TOLUA_RELEASE 01375 tolua_Error tolua_err; 01376 if ( 01377 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01378 !tolua_isnoobj(tolua_S,2,&tolua_err) 01379 ) 01380 goto tolua_lerror; 01381 else 01382 #endif 01383 { 01384 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01385 #ifndef TOLUA_RELEASE 01386 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL); 01387 #endif 01388 { 01389 bool tolua_ret = (bool) self->has_writer(); 01390 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01391 } 01392 } 01393 return 1; 01394 #ifndef TOLUA_RELEASE 01395 tolua_lerror: 01396 tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err); 01397 return 0; 01398 #endif 01399 } 01400 #endif //#ifndef TOLUA_DISABLE 01401 01402 /* method: num_readers of class fawkes::JoystickInterface */ 01403 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00 01404 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00(lua_State* tolua_S) 01405 { 01406 #ifndef TOLUA_RELEASE 01407 tolua_Error tolua_err; 01408 if ( 01409 !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) || 01410 !tolua_isnoobj(tolua_S,2,&tolua_err) 01411 ) 01412 goto tolua_lerror; 01413 else 01414 #endif 01415 { 01416 const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01417 #ifndef TOLUA_RELEASE 01418 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL); 01419 #endif 01420 { 01421 unsigned int tolua_ret = (unsigned int) self->num_readers(); 01422 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01423 } 01424 } 01425 return 1; 01426 #ifndef TOLUA_RELEASE 01427 tolua_lerror: 01428 tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err); 01429 return 0; 01430 #endif 01431 } 01432 #endif //#ifndef TOLUA_DISABLE 01433 01434 /* method: msgq_enqueue_copy of class fawkes::JoystickInterface */ 01435 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00 01436 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00(lua_State* tolua_S) 01437 { 01438 #ifndef TOLUA_RELEASE 01439 tolua_Error tolua_err; 01440 if ( 01441 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01442 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 01443 !tolua_isnoobj(tolua_S,3,&tolua_err) 01444 ) 01445 goto tolua_lerror; 01446 else 01447 #endif 01448 { 01449 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01450 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 01451 #ifndef TOLUA_RELEASE 01452 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL); 01453 #endif 01454 { 01455 unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message); 01456 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01457 } 01458 } 01459 return 1; 01460 #ifndef TOLUA_RELEASE 01461 tolua_lerror: 01462 tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err); 01463 return 0; 01464 #endif 01465 } 01466 #endif //#ifndef TOLUA_DISABLE 01467 01468 /* method: msgq_remove of class fawkes::JoystickInterface */ 01469 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00 01470 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00(lua_State* tolua_S) 01471 { 01472 #ifndef TOLUA_RELEASE 01473 tolua_Error tolua_err; 01474 if ( 01475 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01476 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 01477 !tolua_isnoobj(tolua_S,3,&tolua_err) 01478 ) 01479 goto tolua_lerror; 01480 else 01481 #endif 01482 { 01483 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01484 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 01485 #ifndef TOLUA_RELEASE 01486 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01487 #endif 01488 { 01489 self->msgq_remove(message); 01490 } 01491 } 01492 return 0; 01493 #ifndef TOLUA_RELEASE 01494 tolua_lerror: 01495 tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err); 01496 return 0; 01497 #endif 01498 } 01499 #endif //#ifndef TOLUA_DISABLE 01500 01501 /* method: msgq_remove of class fawkes::JoystickInterface */ 01502 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01 01503 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01(lua_State* tolua_S) 01504 { 01505 tolua_Error tolua_err; 01506 if ( 01507 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01508 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01509 !tolua_isnoobj(tolua_S,3,&tolua_err) 01510 ) 01511 goto tolua_lerror; 01512 else 01513 { 01514 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01515 unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 01516 #ifndef TOLUA_RELEASE 01517 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01518 #endif 01519 { 01520 self->msgq_remove(message_id); 01521 } 01522 } 01523 return 0; 01524 tolua_lerror: 01525 return tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00(tolua_S); 01526 } 01527 #endif //#ifndef TOLUA_DISABLE 01528 01529 /* method: msgq_size of class fawkes::JoystickInterface */ 01530 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00 01531 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00(lua_State* tolua_S) 01532 { 01533 #ifndef TOLUA_RELEASE 01534 tolua_Error tolua_err; 01535 if ( 01536 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01537 !tolua_isnoobj(tolua_S,2,&tolua_err) 01538 ) 01539 goto tolua_lerror; 01540 else 01541 #endif 01542 { 01543 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01544 #ifndef TOLUA_RELEASE 01545 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL); 01546 #endif 01547 { 01548 unsigned int tolua_ret = (unsigned int) self->msgq_size(); 01549 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01550 } 01551 } 01552 return 1; 01553 #ifndef TOLUA_RELEASE 01554 tolua_lerror: 01555 tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err); 01556 return 0; 01557 #endif 01558 } 01559 #endif //#ifndef TOLUA_DISABLE 01560 01561 /* method: msgq_flush of class fawkes::JoystickInterface */ 01562 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00 01563 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00(lua_State* tolua_S) 01564 { 01565 #ifndef TOLUA_RELEASE 01566 tolua_Error tolua_err; 01567 if ( 01568 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01569 !tolua_isnoobj(tolua_S,2,&tolua_err) 01570 ) 01571 goto tolua_lerror; 01572 else 01573 #endif 01574 { 01575 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01576 #ifndef TOLUA_RELEASE 01577 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL); 01578 #endif 01579 { 01580 self->msgq_flush(); 01581 } 01582 } 01583 return 0; 01584 #ifndef TOLUA_RELEASE 01585 tolua_lerror: 01586 tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err); 01587 return 0; 01588 #endif 01589 } 01590 #endif //#ifndef TOLUA_DISABLE 01591 01592 /* method: msgq_lock of class fawkes::JoystickInterface */ 01593 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00 01594 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00(lua_State* tolua_S) 01595 { 01596 #ifndef TOLUA_RELEASE 01597 tolua_Error tolua_err; 01598 if ( 01599 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01600 !tolua_isnoobj(tolua_S,2,&tolua_err) 01601 ) 01602 goto tolua_lerror; 01603 else 01604 #endif 01605 { 01606 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01607 #ifndef TOLUA_RELEASE 01608 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL); 01609 #endif 01610 { 01611 self->msgq_lock(); 01612 } 01613 } 01614 return 0; 01615 #ifndef TOLUA_RELEASE 01616 tolua_lerror: 01617 tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err); 01618 return 0; 01619 #endif 01620 } 01621 #endif //#ifndef TOLUA_DISABLE 01622 01623 /* method: msgq_try_lock of class fawkes::JoystickInterface */ 01624 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00 01625 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00(lua_State* tolua_S) 01626 { 01627 #ifndef TOLUA_RELEASE 01628 tolua_Error tolua_err; 01629 if ( 01630 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01631 !tolua_isnoobj(tolua_S,2,&tolua_err) 01632 ) 01633 goto tolua_lerror; 01634 else 01635 #endif 01636 { 01637 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01638 #ifndef TOLUA_RELEASE 01639 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL); 01640 #endif 01641 { 01642 bool tolua_ret = (bool) self->msgq_try_lock(); 01643 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01644 } 01645 } 01646 return 1; 01647 #ifndef TOLUA_RELEASE 01648 tolua_lerror: 01649 tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err); 01650 return 0; 01651 #endif 01652 } 01653 #endif //#ifndef TOLUA_DISABLE 01654 01655 /* method: msgq_unlock of class fawkes::JoystickInterface */ 01656 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00 01657 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00(lua_State* tolua_S) 01658 { 01659 #ifndef TOLUA_RELEASE 01660 tolua_Error tolua_err; 01661 if ( 01662 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01663 !tolua_isnoobj(tolua_S,2,&tolua_err) 01664 ) 01665 goto tolua_lerror; 01666 else 01667 #endif 01668 { 01669 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01670 #ifndef TOLUA_RELEASE 01671 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL); 01672 #endif 01673 { 01674 self->msgq_unlock(); 01675 } 01676 } 01677 return 0; 01678 #ifndef TOLUA_RELEASE 01679 tolua_lerror: 01680 tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err); 01681 return 0; 01682 #endif 01683 } 01684 #endif //#ifndef TOLUA_DISABLE 01685 01686 /* method: msgq_pop of class fawkes::JoystickInterface */ 01687 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00 01688 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00(lua_State* tolua_S) 01689 { 01690 #ifndef TOLUA_RELEASE 01691 tolua_Error tolua_err; 01692 if ( 01693 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01694 !tolua_isnoobj(tolua_S,2,&tolua_err) 01695 ) 01696 goto tolua_lerror; 01697 else 01698 #endif 01699 { 01700 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01701 #ifndef TOLUA_RELEASE 01702 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL); 01703 #endif 01704 { 01705 self->msgq_pop(); 01706 } 01707 } 01708 return 0; 01709 #ifndef TOLUA_RELEASE 01710 tolua_lerror: 01711 tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err); 01712 return 0; 01713 #endif 01714 } 01715 #endif //#ifndef TOLUA_DISABLE 01716 01717 /* method: msgq_first of class fawkes::JoystickInterface */ 01718 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00 01719 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00(lua_State* tolua_S) 01720 { 01721 #ifndef TOLUA_RELEASE 01722 tolua_Error tolua_err; 01723 if ( 01724 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01725 !tolua_isnoobj(tolua_S,2,&tolua_err) 01726 ) 01727 goto tolua_lerror; 01728 else 01729 #endif 01730 { 01731 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01732 #ifndef TOLUA_RELEASE 01733 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL); 01734 #endif 01735 { 01736 Message* tolua_ret = (Message*) self->msgq_first(); 01737 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 01738 } 01739 } 01740 return 1; 01741 #ifndef TOLUA_RELEASE 01742 tolua_lerror: 01743 tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err); 01744 return 0; 01745 #endif 01746 } 01747 #endif //#ifndef TOLUA_DISABLE 01748 01749 /* method: msgq_empty of class fawkes::JoystickInterface */ 01750 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00 01751 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00(lua_State* tolua_S) 01752 { 01753 #ifndef TOLUA_RELEASE 01754 tolua_Error tolua_err; 01755 if ( 01756 !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) || 01757 !tolua_isnoobj(tolua_S,2,&tolua_err) 01758 ) 01759 goto tolua_lerror; 01760 else 01761 #endif 01762 { 01763 fawkes::JoystickInterface* self = (fawkes::JoystickInterface*) tolua_tousertype(tolua_S,1,0); 01764 #ifndef TOLUA_RELEASE 01765 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL); 01766 #endif 01767 { 01768 bool tolua_ret = (bool) self->msgq_empty(); 01769 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01770 } 01771 } 01772 return 1; 01773 #ifndef TOLUA_RELEASE 01774 tolua_lerror: 01775 tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err); 01776 return 0; 01777 #endif 01778 } 01779 #endif //#ifndef TOLUA_DISABLE 01780 01781 /* Open function */ 01782 TOLUA_API int tolua_interfaces_JoystickInterface_open (lua_State* tolua_S) 01783 { 01784 tolua_open(tolua_S); 01785 tolua_reg_types(tolua_S); 01786 tolua_module(tolua_S,NULL,0); 01787 tolua_beginmodule(tolua_S,NULL); 01788 tolua_module(tolua_S,"fawkes",0); 01789 tolua_beginmodule(tolua_S,"fawkes"); 01790 tolua_cclass(tolua_S,"JoystickInterface","fawkes::JoystickInterface","Interface",NULL); 01791 tolua_beginmodule(tolua_S,"JoystickInterface"); 01792 tolua_variable(tolua_S,"BUTTON_1",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1,NULL); 01793 tolua_variable(tolua_S,"BUTTON_2",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2,NULL); 01794 tolua_variable(tolua_S,"BUTTON_3",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3,NULL); 01795 tolua_variable(tolua_S,"BUTTON_4",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4,NULL); 01796 tolua_variable(tolua_S,"BUTTON_5",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5,NULL); 01797 tolua_variable(tolua_S,"BUTTON_6",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6,NULL); 01798 tolua_variable(tolua_S,"BUTTON_7",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7,NULL); 01799 tolua_variable(tolua_S,"BUTTON_8",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8,NULL); 01800 tolua_variable(tolua_S,"BUTTON_9",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9,NULL); 01801 tolua_variable(tolua_S,"BUTTON_10",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10,NULL); 01802 tolua_variable(tolua_S,"BUTTON_11",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11,NULL); 01803 tolua_variable(tolua_S,"BUTTON_12",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12,NULL); 01804 tolua_variable(tolua_S,"BUTTON_13",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13,NULL); 01805 tolua_variable(tolua_S,"BUTTON_14",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14,NULL); 01806 tolua_variable(tolua_S,"BUTTON_15",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15,NULL); 01807 tolua_variable(tolua_S,"BUTTON_16",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16,NULL); 01808 tolua_variable(tolua_S,"BUTTON_17",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17,NULL); 01809 tolua_variable(tolua_S,"BUTTON_18",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18,NULL); 01810 tolua_variable(tolua_S,"BUTTON_19",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19,NULL); 01811 tolua_variable(tolua_S,"BUTTON_20",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20,NULL); 01812 tolua_variable(tolua_S,"BUTTON_21",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21,NULL); 01813 tolua_variable(tolua_S,"BUTTON_22",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22,NULL); 01814 tolua_variable(tolua_S,"BUTTON_23",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23,NULL); 01815 tolua_variable(tolua_S,"BUTTON_24",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24,NULL); 01816 tolua_variable(tolua_S,"BUTTON_25",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25,NULL); 01817 tolua_variable(tolua_S,"BUTTON_26",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26,NULL); 01818 tolua_variable(tolua_S,"BUTTON_27",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27,NULL); 01819 tolua_variable(tolua_S,"BUTTON_28",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28,NULL); 01820 tolua_variable(tolua_S,"BUTTON_29",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29,NULL); 01821 tolua_variable(tolua_S,"BUTTON_30",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30,NULL); 01822 tolua_variable(tolua_S,"BUTTON_31",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31,NULL); 01823 tolua_variable(tolua_S,"BUTTON_32",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32,NULL); 01824 tolua_function(tolua_S,"num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00); 01825 tolua_function(tolua_S,"set_num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00); 01826 tolua_function(tolua_S,"maxlenof_num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00); 01827 tolua_function(tolua_S,"num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00); 01828 tolua_function(tolua_S,"set_num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00); 01829 tolua_function(tolua_S,"maxlenof_num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00); 01830 tolua_function(tolua_S,"pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00); 01831 tolua_function(tolua_S,"set_pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00); 01832 tolua_function(tolua_S,"maxlenof_pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00); 01833 tolua_function(tolua_S,"axis_x",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_x00); 01834 tolua_function(tolua_S,"set_axis_x",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_x00); 01835 tolua_function(tolua_S,"maxlenof_axis_x",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_x00); 01836 tolua_function(tolua_S,"axis_y",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis_y00); 01837 tolua_function(tolua_S,"set_axis_y",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis_y00); 01838 tolua_function(tolua_S,"maxlenof_axis_y",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis_y00); 01839 tolua_function(tolua_S,"oftype",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00); 01840 tolua_function(tolua_S,"datachunk",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00); 01841 tolua_function(tolua_S,"datasize",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00); 01842 tolua_function(tolua_S,"type",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00); 01843 tolua_function(tolua_S,"id",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00); 01844 tolua_function(tolua_S,"uid",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00); 01845 tolua_function(tolua_S,"serial",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00); 01846 tolua_function(tolua_S,"mem_serial",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00); 01847 tolua_function(tolua_S,".eq",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00); 01848 tolua_function(tolua_S,"hash",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00); 01849 tolua_function(tolua_S,"hash_size",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00); 01850 tolua_function(tolua_S,"hash_printable",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00); 01851 tolua_function(tolua_S,"is_writer",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00); 01852 tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00); 01853 tolua_function(tolua_S,"create_message",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00); 01854 tolua_function(tolua_S,"read",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00); 01855 tolua_function(tolua_S,"write",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00); 01856 tolua_function(tolua_S,"has_writer",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00); 01857 tolua_function(tolua_S,"num_readers",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00); 01858 tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00); 01859 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00); 01860 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01); 01861 tolua_function(tolua_S,"msgq_size",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00); 01862 tolua_function(tolua_S,"msgq_flush",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00); 01863 tolua_function(tolua_S,"msgq_lock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00); 01864 tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00); 01865 tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00); 01866 tolua_function(tolua_S,"msgq_pop",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00); 01867 tolua_function(tolua_S,"msgq_first",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00); 01868 tolua_function(tolua_S,"msgq_empty",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00); 01869 tolua_endmodule(tolua_S); 01870 tolua_endmodule(tolua_S); 01871 tolua_endmodule(tolua_S); 01872 return 1; 01873 } 01874 01875 01876 extern "C" { 01877 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 01878 TOLUA_API int luaopen_interfaces_JoystickInterface (lua_State* tolua_S) { 01879 return tolua_interfaces_JoystickInterface_open(tolua_S); 01880 }; 01881 #endif 01882 } 01883 01884