Fawkes API  Fawkes Development Version
JoystickInterface_tolua.cpp
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 release collected object via destructor */
00033 #ifdef __cplusplus
00034 
00035 static int tolua_collect_fawkes__JoystickInterface__StartRumbleMessage (lua_State* tolua_S)
00036 {
00037  fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*) tolua_tousertype(tolua_S,1,0);
00038         Mtolua_delete(self);
00039         return 0;
00040 }
00041 
00042 static int tolua_collect_fawkes__JoystickInterface__StopAllMessage (lua_State* tolua_S)
00043 {
00044  fawkes::JoystickInterface::StopAllMessage* self = (fawkes::JoystickInterface::StopAllMessage*) tolua_tousertype(tolua_S,1,0);
00045         Mtolua_delete(self);
00046         return 0;
00047 }
00048 
00049 static int tolua_collect_fawkes__JoystickInterface__StopRumbleMessage (lua_State* tolua_S)
00050 {
00051  fawkes::JoystickInterface::StopRumbleMessage* self = (fawkes::JoystickInterface::StopRumbleMessage*) tolua_tousertype(tolua_S,1,0);
00052         Mtolua_delete(self);
00053         return 0;
00054 }
00055 #endif
00056 
00057 
00058 /* function to register type */
00059 static void tolua_reg_types (lua_State* tolua_S)
00060 {
00061  tolua_usertype(tolua_S,"Message");
00062  tolua_usertype(tolua_S,"fawkes::JoystickInterface");
00063  tolua_usertype(tolua_S,"fawkes::JoystickInterface::StartRumbleMessage");
00064  tolua_usertype(tolua_S,"fawkes::JoystickInterface::StopAllMessage");
00065  tolua_usertype(tolua_S,"fawkes::JoystickInterface::StopRumbleMessage");
00066  tolua_usertype(tolua_S,"Interface");
00067 }
00068 
00069 /* get function: BUTTON_1 of class  fawkes::JoystickInterface */
00070 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1
00071 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1(lua_State* tolua_S)
00072 {
00073   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_1);
00074  return 1;
00075 }
00076 #endif //#ifndef TOLUA_DISABLE
00077 
00078 /* get function: BUTTON_2 of class  fawkes::JoystickInterface */
00079 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2
00080 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2(lua_State* tolua_S)
00081 {
00082   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_2);
00083  return 1;
00084 }
00085 #endif //#ifndef TOLUA_DISABLE
00086 
00087 /* get function: BUTTON_3 of class  fawkes::JoystickInterface */
00088 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3
00089 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3(lua_State* tolua_S)
00090 {
00091   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_3);
00092  return 1;
00093 }
00094 #endif //#ifndef TOLUA_DISABLE
00095 
00096 /* get function: BUTTON_4 of class  fawkes::JoystickInterface */
00097 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4
00098 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4(lua_State* tolua_S)
00099 {
00100   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_4);
00101  return 1;
00102 }
00103 #endif //#ifndef TOLUA_DISABLE
00104 
00105 /* get function: BUTTON_5 of class  fawkes::JoystickInterface */
00106 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5
00107 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5(lua_State* tolua_S)
00108 {
00109   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_5);
00110  return 1;
00111 }
00112 #endif //#ifndef TOLUA_DISABLE
00113 
00114 /* get function: BUTTON_6 of class  fawkes::JoystickInterface */
00115 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6
00116 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6(lua_State* tolua_S)
00117 {
00118   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_6);
00119  return 1;
00120 }
00121 #endif //#ifndef TOLUA_DISABLE
00122 
00123 /* get function: BUTTON_7 of class  fawkes::JoystickInterface */
00124 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7
00125 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7(lua_State* tolua_S)
00126 {
00127   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_7);
00128  return 1;
00129 }
00130 #endif //#ifndef TOLUA_DISABLE
00131 
00132 /* get function: BUTTON_8 of class  fawkes::JoystickInterface */
00133 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8
00134 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8(lua_State* tolua_S)
00135 {
00136   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_8);
00137  return 1;
00138 }
00139 #endif //#ifndef TOLUA_DISABLE
00140 
00141 /* get function: BUTTON_9 of class  fawkes::JoystickInterface */
00142 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9
00143 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9(lua_State* tolua_S)
00144 {
00145   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_9);
00146  return 1;
00147 }
00148 #endif //#ifndef TOLUA_DISABLE
00149 
00150 /* get function: BUTTON_10 of class  fawkes::JoystickInterface */
00151 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10
00152 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10(lua_State* tolua_S)
00153 {
00154   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_10);
00155  return 1;
00156 }
00157 #endif //#ifndef TOLUA_DISABLE
00158 
00159 /* get function: BUTTON_11 of class  fawkes::JoystickInterface */
00160 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11
00161 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11(lua_State* tolua_S)
00162 {
00163   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_11);
00164  return 1;
00165 }
00166 #endif //#ifndef TOLUA_DISABLE
00167 
00168 /* get function: BUTTON_12 of class  fawkes::JoystickInterface */
00169 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12
00170 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12(lua_State* tolua_S)
00171 {
00172   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_12);
00173  return 1;
00174 }
00175 #endif //#ifndef TOLUA_DISABLE
00176 
00177 /* get function: BUTTON_13 of class  fawkes::JoystickInterface */
00178 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13
00179 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13(lua_State* tolua_S)
00180 {
00181   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_13);
00182  return 1;
00183 }
00184 #endif //#ifndef TOLUA_DISABLE
00185 
00186 /* get function: BUTTON_14 of class  fawkes::JoystickInterface */
00187 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14
00188 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14(lua_State* tolua_S)
00189 {
00190   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_14);
00191  return 1;
00192 }
00193 #endif //#ifndef TOLUA_DISABLE
00194 
00195 /* get function: BUTTON_15 of class  fawkes::JoystickInterface */
00196 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15
00197 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15(lua_State* tolua_S)
00198 {
00199   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_15);
00200  return 1;
00201 }
00202 #endif //#ifndef TOLUA_DISABLE
00203 
00204 /* get function: BUTTON_16 of class  fawkes::JoystickInterface */
00205 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16
00206 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16(lua_State* tolua_S)
00207 {
00208   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_16);
00209  return 1;
00210 }
00211 #endif //#ifndef TOLUA_DISABLE
00212 
00213 /* get function: BUTTON_17 of class  fawkes::JoystickInterface */
00214 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17
00215 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17(lua_State* tolua_S)
00216 {
00217   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_17);
00218  return 1;
00219 }
00220 #endif //#ifndef TOLUA_DISABLE
00221 
00222 /* get function: BUTTON_18 of class  fawkes::JoystickInterface */
00223 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18
00224 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18(lua_State* tolua_S)
00225 {
00226   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_18);
00227  return 1;
00228 }
00229 #endif //#ifndef TOLUA_DISABLE
00230 
00231 /* get function: BUTTON_19 of class  fawkes::JoystickInterface */
00232 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19
00233 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19(lua_State* tolua_S)
00234 {
00235   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_19);
00236  return 1;
00237 }
00238 #endif //#ifndef TOLUA_DISABLE
00239 
00240 /* get function: BUTTON_20 of class  fawkes::JoystickInterface */
00241 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20
00242 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20(lua_State* tolua_S)
00243 {
00244   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_20);
00245  return 1;
00246 }
00247 #endif //#ifndef TOLUA_DISABLE
00248 
00249 /* get function: BUTTON_21 of class  fawkes::JoystickInterface */
00250 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21
00251 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21(lua_State* tolua_S)
00252 {
00253   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_21);
00254  return 1;
00255 }
00256 #endif //#ifndef TOLUA_DISABLE
00257 
00258 /* get function: BUTTON_22 of class  fawkes::JoystickInterface */
00259 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22
00260 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22(lua_State* tolua_S)
00261 {
00262   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_22);
00263  return 1;
00264 }
00265 #endif //#ifndef TOLUA_DISABLE
00266 
00267 /* get function: BUTTON_23 of class  fawkes::JoystickInterface */
00268 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23
00269 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23(lua_State* tolua_S)
00270 {
00271   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_23);
00272  return 1;
00273 }
00274 #endif //#ifndef TOLUA_DISABLE
00275 
00276 /* get function: BUTTON_24 of class  fawkes::JoystickInterface */
00277 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24
00278 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24(lua_State* tolua_S)
00279 {
00280   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_24);
00281  return 1;
00282 }
00283 #endif //#ifndef TOLUA_DISABLE
00284 
00285 /* get function: BUTTON_25 of class  fawkes::JoystickInterface */
00286 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25
00287 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25(lua_State* tolua_S)
00288 {
00289   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_25);
00290  return 1;
00291 }
00292 #endif //#ifndef TOLUA_DISABLE
00293 
00294 /* get function: BUTTON_26 of class  fawkes::JoystickInterface */
00295 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26
00296 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26(lua_State* tolua_S)
00297 {
00298   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_26);
00299  return 1;
00300 }
00301 #endif //#ifndef TOLUA_DISABLE
00302 
00303 /* get function: BUTTON_27 of class  fawkes::JoystickInterface */
00304 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27
00305 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27(lua_State* tolua_S)
00306 {
00307   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_27);
00308  return 1;
00309 }
00310 #endif //#ifndef TOLUA_DISABLE
00311 
00312 /* get function: BUTTON_28 of class  fawkes::JoystickInterface */
00313 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28
00314 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28(lua_State* tolua_S)
00315 {
00316   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_28);
00317  return 1;
00318 }
00319 #endif //#ifndef TOLUA_DISABLE
00320 
00321 /* get function: BUTTON_29 of class  fawkes::JoystickInterface */
00322 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29
00323 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29(lua_State* tolua_S)
00324 {
00325   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_29);
00326  return 1;
00327 }
00328 #endif //#ifndef TOLUA_DISABLE
00329 
00330 /* get function: BUTTON_30 of class  fawkes::JoystickInterface */
00331 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30
00332 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30(lua_State* tolua_S)
00333 {
00334   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_30);
00335  return 1;
00336 }
00337 #endif //#ifndef TOLUA_DISABLE
00338 
00339 /* get function: BUTTON_31 of class  fawkes::JoystickInterface */
00340 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31
00341 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31(lua_State* tolua_S)
00342 {
00343   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_31);
00344  return 1;
00345 }
00346 #endif //#ifndef TOLUA_DISABLE
00347 
00348 /* get function: BUTTON_32 of class  fawkes::JoystickInterface */
00349 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32
00350 static int tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32(lua_State* tolua_S)
00351 {
00352   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::BUTTON_32);
00353  return 1;
00354 }
00355 #endif //#ifndef TOLUA_DISABLE
00356 
00357 /* get function: JFF_RUMBLE of class  fawkes::JoystickInterface */
00358 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_RUMBLE
00359 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_RUMBLE(lua_State* tolua_S)
00360 {
00361   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_RUMBLE);
00362  return 1;
00363 }
00364 #endif //#ifndef TOLUA_DISABLE
00365 
00366 /* get function: JFF_PERIODIC of class  fawkes::JoystickInterface */
00367 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_PERIODIC
00368 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_PERIODIC(lua_State* tolua_S)
00369 {
00370   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_PERIODIC);
00371  return 1;
00372 }
00373 #endif //#ifndef TOLUA_DISABLE
00374 
00375 /* get function: JFF_RAMP of class  fawkes::JoystickInterface */
00376 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_RAMP
00377 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_RAMP(lua_State* tolua_S)
00378 {
00379   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_RAMP);
00380  return 1;
00381 }
00382 #endif //#ifndef TOLUA_DISABLE
00383 
00384 /* get function: JFF_SPRING of class  fawkes::JoystickInterface */
00385 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_SPRING
00386 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_SPRING(lua_State* tolua_S)
00387 {
00388   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_SPRING);
00389  return 1;
00390 }
00391 #endif //#ifndef TOLUA_DISABLE
00392 
00393 /* get function: JFF_FRICTION of class  fawkes::JoystickInterface */
00394 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_FRICTION
00395 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_FRICTION(lua_State* tolua_S)
00396 {
00397   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_FRICTION);
00398  return 1;
00399 }
00400 #endif //#ifndef TOLUA_DISABLE
00401 
00402 /* get function: JFF_DAMPER of class  fawkes::JoystickInterface */
00403 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_DAMPER
00404 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_DAMPER(lua_State* tolua_S)
00405 {
00406   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_DAMPER);
00407  return 1;
00408 }
00409 #endif //#ifndef TOLUA_DISABLE
00410 
00411 /* get function: JFF_INERTIA of class  fawkes::JoystickInterface */
00412 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_INERTIA
00413 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_INERTIA(lua_State* tolua_S)
00414 {
00415   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_INERTIA);
00416  return 1;
00417 }
00418 #endif //#ifndef TOLUA_DISABLE
00419 
00420 /* get function: JFF_CONSTANT of class  fawkes::JoystickInterface */
00421 #ifndef TOLUA_DISABLE_tolua_get_fawkes__JoystickInterface_unsigned_JFF_CONSTANT
00422 static int tolua_get_fawkes__JoystickInterface_unsigned_JFF_CONSTANT(lua_State* tolua_S)
00423 {
00424   tolua_pushnumber(tolua_S,(lua_Number)fawkes::JoystickInterface::JFF_CONSTANT);
00425  return 1;
00426 }
00427 #endif //#ifndef TOLUA_DISABLE
00428 
00429 /* method: new of class  StartRumbleMessage */
00430 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00
00431 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00(lua_State* tolua_S)
00432 {
00433 #ifndef TOLUA_RELEASE
00434  tolua_Error tolua_err;
00435  if (
00436      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00437      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00438      !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
00439      !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
00440      !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
00441      !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
00442      !tolua_isnoobj(tolua_S,7,&tolua_err)
00443  )
00444   goto tolua_lerror;
00445  else
00446 #endif
00447  {
00448   unsigned short ini_length = ((unsigned short)  tolua_tonumber(tolua_S,2,0));
00449   unsigned short ini_delay = ((unsigned short)  tolua_tonumber(tolua_S,3,0));
00450   fawkes::JoystickInterface::Direction ini_direction = ((fawkes::JoystickInterface::Direction) (int)  tolua_tonumber(tolua_S,4,0));
00451   unsigned short ini_strong_magnitude = ((unsigned short)  tolua_tonumber(tolua_S,5,0));
00452   unsigned short ini_weak_magnitude = ((unsigned short)  tolua_tonumber(tolua_S,6,0));
00453   {
00454    fawkes::JoystickInterface::StartRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StartRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StartRumbleMessage)(ini_length,ini_delay,ini_direction,ini_strong_magnitude,ini_weak_magnitude));
00455     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StartRumbleMessage");
00456   }
00457  }
00458  return 1;
00459 #ifndef TOLUA_RELEASE
00460  tolua_lerror:
00461  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00462  return 0;
00463 #endif
00464 }
00465 #endif //#ifndef TOLUA_DISABLE
00466 
00467 /* method: new_local of class  StartRumbleMessage */
00468 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00_local
00469 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00_local(lua_State* tolua_S)
00470 {
00471 #ifndef TOLUA_RELEASE
00472  tolua_Error tolua_err;
00473  if (
00474      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00475      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00476      !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
00477      !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
00478      !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
00479      !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
00480      !tolua_isnoobj(tolua_S,7,&tolua_err)
00481  )
00482   goto tolua_lerror;
00483  else
00484 #endif
00485  {
00486   unsigned short ini_length = ((unsigned short)  tolua_tonumber(tolua_S,2,0));
00487   unsigned short ini_delay = ((unsigned short)  tolua_tonumber(tolua_S,3,0));
00488   fawkes::JoystickInterface::Direction ini_direction = ((fawkes::JoystickInterface::Direction) (int)  tolua_tonumber(tolua_S,4,0));
00489   unsigned short ini_strong_magnitude = ((unsigned short)  tolua_tonumber(tolua_S,5,0));
00490   unsigned short ini_weak_magnitude = ((unsigned short)  tolua_tonumber(tolua_S,6,0));
00491   {
00492    fawkes::JoystickInterface::StartRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StartRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StartRumbleMessage)(ini_length,ini_delay,ini_direction,ini_strong_magnitude,ini_weak_magnitude));
00493     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StartRumbleMessage");
00494     tolua_register_gc(tolua_S,lua_gettop(tolua_S));
00495   }
00496  }
00497  return 1;
00498 #ifndef TOLUA_RELEASE
00499  tolua_lerror:
00500  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00501  return 0;
00502 #endif
00503 }
00504 #endif //#ifndef TOLUA_DISABLE
00505 
00506 /* method: new of class  StartRumbleMessage */
00507 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01
00508 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01(lua_State* tolua_S)
00509 {
00510  tolua_Error tolua_err;
00511  if (
00512      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00513      !tolua_isnoobj(tolua_S,2,&tolua_err)
00514  )
00515   goto tolua_lerror;
00516  else
00517  {
00518   {
00519    fawkes::JoystickInterface::StartRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StartRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StartRumbleMessage)());
00520     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StartRumbleMessage");
00521   }
00522  }
00523  return 1;
00524 tolua_lerror:
00525  return tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00(tolua_S);
00526 }
00527 #endif //#ifndef TOLUA_DISABLE
00528 
00529 /* method: new_local of class  StartRumbleMessage */
00530 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01_local
00531 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01_local(lua_State* tolua_S)
00532 {
00533  tolua_Error tolua_err;
00534  if (
00535      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00536      !tolua_isnoobj(tolua_S,2,&tolua_err)
00537  )
00538   goto tolua_lerror;
00539  else
00540  {
00541   {
00542    fawkes::JoystickInterface::StartRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StartRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StartRumbleMessage)());
00543     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StartRumbleMessage");
00544     tolua_register_gc(tolua_S,lua_gettop(tolua_S));
00545   }
00546  }
00547  return 1;
00548 tolua_lerror:
00549  return tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00_local(tolua_S);
00550 }
00551 #endif //#ifndef TOLUA_DISABLE
00552 
00553 /* method: delete of class  StartRumbleMessage */
00554 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delete00
00555 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delete00(lua_State* tolua_S)
00556 {
00557 #ifndef TOLUA_RELEASE
00558  tolua_Error tolua_err;
00559  if (
00560      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00561      !tolua_isnoobj(tolua_S,2,&tolua_err)
00562  )
00563   goto tolua_lerror;
00564  else
00565 #endif
00566  {
00567   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00568 #ifndef TOLUA_RELEASE
00569   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
00570 #endif
00571   Mtolua_delete(self);
00572  }
00573  return 0;
00574 #ifndef TOLUA_RELEASE
00575  tolua_lerror:
00576  tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
00577  return 0;
00578 #endif
00579 }
00580 #endif //#ifndef TOLUA_DISABLE
00581 
00582 /* method: length of class  StartRumbleMessage */
00583 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_length00
00584 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_length00(lua_State* tolua_S)
00585 {
00586 #ifndef TOLUA_RELEASE
00587  tolua_Error tolua_err;
00588  if (
00589      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00590      !tolua_isnoobj(tolua_S,2,&tolua_err)
00591  )
00592   goto tolua_lerror;
00593  else
00594 #endif
00595  {
00596   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00597 #ifndef TOLUA_RELEASE
00598   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'length'", NULL);
00599 #endif
00600   {
00601    unsigned short tolua_ret = (unsigned short)  self->length();
00602    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00603   }
00604  }
00605  return 1;
00606 #ifndef TOLUA_RELEASE
00607  tolua_lerror:
00608  tolua_error(tolua_S,"#ferror in function 'length'.",&tolua_err);
00609  return 0;
00610 #endif
00611 }
00612 #endif //#ifndef TOLUA_DISABLE
00613 
00614 /* method: set_length of class  StartRumbleMessage */
00615 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_length00
00616 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_length00(lua_State* tolua_S)
00617 {
00618 #ifndef TOLUA_RELEASE
00619  tolua_Error tolua_err;
00620  if (
00621      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00622      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00623      !tolua_isnoobj(tolua_S,3,&tolua_err)
00624  )
00625   goto tolua_lerror;
00626  else
00627 #endif
00628  {
00629   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00630   unsigned const short new_length = ((unsigned const short)  tolua_tonumber(tolua_S,2,0));
00631 #ifndef TOLUA_RELEASE
00632   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_length'", NULL);
00633 #endif
00634   {
00635    self->set_length(new_length);
00636   }
00637  }
00638  return 0;
00639 #ifndef TOLUA_RELEASE
00640  tolua_lerror:
00641  tolua_error(tolua_S,"#ferror in function 'set_length'.",&tolua_err);
00642  return 0;
00643 #endif
00644 }
00645 #endif //#ifndef TOLUA_DISABLE
00646 
00647 /* method: maxlenof_length of class  StartRumbleMessage */
00648 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_length00
00649 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_length00(lua_State* tolua_S)
00650 {
00651 #ifndef TOLUA_RELEASE
00652  tolua_Error tolua_err;
00653  if (
00654      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00655      !tolua_isnoobj(tolua_S,2,&tolua_err)
00656  )
00657   goto tolua_lerror;
00658  else
00659 #endif
00660  {
00661   const fawkes::JoystickInterface::StartRumbleMessage* self = (const fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00662 #ifndef TOLUA_RELEASE
00663   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_length'", NULL);
00664 #endif
00665   {
00666    int tolua_ret = (int)  self->maxlenof_length();
00667    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00668   }
00669  }
00670  return 1;
00671 #ifndef TOLUA_RELEASE
00672  tolua_lerror:
00673  tolua_error(tolua_S,"#ferror in function 'maxlenof_length'.",&tolua_err);
00674  return 0;
00675 #endif
00676 }
00677 #endif //#ifndef TOLUA_DISABLE
00678 
00679 /* method: delay of class  StartRumbleMessage */
00680 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delay00
00681 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delay00(lua_State* tolua_S)
00682 {
00683 #ifndef TOLUA_RELEASE
00684  tolua_Error tolua_err;
00685  if (
00686      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00687      !tolua_isnoobj(tolua_S,2,&tolua_err)
00688  )
00689   goto tolua_lerror;
00690  else
00691 #endif
00692  {
00693   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00694 #ifndef TOLUA_RELEASE
00695   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delay'", NULL);
00696 #endif
00697   {
00698    unsigned short tolua_ret = (unsigned short)  self->delay();
00699    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00700   }
00701  }
00702  return 1;
00703 #ifndef TOLUA_RELEASE
00704  tolua_lerror:
00705  tolua_error(tolua_S,"#ferror in function 'delay'.",&tolua_err);
00706  return 0;
00707 #endif
00708 }
00709 #endif //#ifndef TOLUA_DISABLE
00710 
00711 /* method: set_delay of class  StartRumbleMessage */
00712 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_delay00
00713 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_delay00(lua_State* tolua_S)
00714 {
00715 #ifndef TOLUA_RELEASE
00716  tolua_Error tolua_err;
00717  if (
00718      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00719      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00720      !tolua_isnoobj(tolua_S,3,&tolua_err)
00721  )
00722   goto tolua_lerror;
00723  else
00724 #endif
00725  {
00726   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00727   unsigned const short new_delay = ((unsigned const short)  tolua_tonumber(tolua_S,2,0));
00728 #ifndef TOLUA_RELEASE
00729   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_delay'", NULL);
00730 #endif
00731   {
00732    self->set_delay(new_delay);
00733   }
00734  }
00735  return 0;
00736 #ifndef TOLUA_RELEASE
00737  tolua_lerror:
00738  tolua_error(tolua_S,"#ferror in function 'set_delay'.",&tolua_err);
00739  return 0;
00740 #endif
00741 }
00742 #endif //#ifndef TOLUA_DISABLE
00743 
00744 /* method: maxlenof_delay of class  StartRumbleMessage */
00745 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_delay00
00746 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_delay00(lua_State* tolua_S)
00747 {
00748 #ifndef TOLUA_RELEASE
00749  tolua_Error tolua_err;
00750  if (
00751      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00752      !tolua_isnoobj(tolua_S,2,&tolua_err)
00753  )
00754   goto tolua_lerror;
00755  else
00756 #endif
00757  {
00758   const fawkes::JoystickInterface::StartRumbleMessage* self = (const fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00759 #ifndef TOLUA_RELEASE
00760   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_delay'", NULL);
00761 #endif
00762   {
00763    int tolua_ret = (int)  self->maxlenof_delay();
00764    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00765   }
00766  }
00767  return 1;
00768 #ifndef TOLUA_RELEASE
00769  tolua_lerror:
00770  tolua_error(tolua_S,"#ferror in function 'maxlenof_delay'.",&tolua_err);
00771  return 0;
00772 #endif
00773 }
00774 #endif //#ifndef TOLUA_DISABLE
00775 
00776 /* method: direction of class  StartRumbleMessage */
00777 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_direction00
00778 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_direction00(lua_State* tolua_S)
00779 {
00780 #ifndef TOLUA_RELEASE
00781  tolua_Error tolua_err;
00782  if (
00783      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00784      !tolua_isnoobj(tolua_S,2,&tolua_err)
00785  )
00786   goto tolua_lerror;
00787  else
00788 #endif
00789  {
00790   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00791 #ifndef TOLUA_RELEASE
00792   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'direction'", NULL);
00793 #endif
00794   {
00795    fawkes::JoystickInterface::Direction tolua_ret = (fawkes::JoystickInterface::Direction)  self->direction();
00796    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00797   }
00798  }
00799  return 1;
00800 #ifndef TOLUA_RELEASE
00801  tolua_lerror:
00802  tolua_error(tolua_S,"#ferror in function 'direction'.",&tolua_err);
00803  return 0;
00804 #endif
00805 }
00806 #endif //#ifndef TOLUA_DISABLE
00807 
00808 /* method: set_direction of class  StartRumbleMessage */
00809 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_direction00
00810 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_direction00(lua_State* tolua_S)
00811 {
00812 #ifndef TOLUA_RELEASE
00813  tolua_Error tolua_err;
00814  if (
00815      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00816      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00817      !tolua_isnoobj(tolua_S,3,&tolua_err)
00818  )
00819   goto tolua_lerror;
00820  else
00821 #endif
00822  {
00823   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00824   const fawkes::JoystickInterface::Direction new_direction = ((const fawkes::JoystickInterface::Direction) (int)  tolua_tonumber(tolua_S,2,0));
00825 #ifndef TOLUA_RELEASE
00826   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_direction'", NULL);
00827 #endif
00828   {
00829    self->set_direction(new_direction);
00830   }
00831  }
00832  return 0;
00833 #ifndef TOLUA_RELEASE
00834  tolua_lerror:
00835  tolua_error(tolua_S,"#ferror in function 'set_direction'.",&tolua_err);
00836  return 0;
00837 #endif
00838 }
00839 #endif //#ifndef TOLUA_DISABLE
00840 
00841 /* method: maxlenof_direction of class  StartRumbleMessage */
00842 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_direction00
00843 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_direction00(lua_State* tolua_S)
00844 {
00845 #ifndef TOLUA_RELEASE
00846  tolua_Error tolua_err;
00847  if (
00848      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00849      !tolua_isnoobj(tolua_S,2,&tolua_err)
00850  )
00851   goto tolua_lerror;
00852  else
00853 #endif
00854  {
00855   const fawkes::JoystickInterface::StartRumbleMessage* self = (const fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00856 #ifndef TOLUA_RELEASE
00857   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_direction'", NULL);
00858 #endif
00859   {
00860    int tolua_ret = (int)  self->maxlenof_direction();
00861    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00862   }
00863  }
00864  return 1;
00865 #ifndef TOLUA_RELEASE
00866  tolua_lerror:
00867  tolua_error(tolua_S,"#ferror in function 'maxlenof_direction'.",&tolua_err);
00868  return 0;
00869 #endif
00870 }
00871 #endif //#ifndef TOLUA_DISABLE
00872 
00873 /* method: strong_magnitude of class  StartRumbleMessage */
00874 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_strong_magnitude00
00875 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_strong_magnitude00(lua_State* tolua_S)
00876 {
00877 #ifndef TOLUA_RELEASE
00878  tolua_Error tolua_err;
00879  if (
00880      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00881      !tolua_isnoobj(tolua_S,2,&tolua_err)
00882  )
00883   goto tolua_lerror;
00884  else
00885 #endif
00886  {
00887   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00888 #ifndef TOLUA_RELEASE
00889   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'strong_magnitude'", NULL);
00890 #endif
00891   {
00892    unsigned short tolua_ret = (unsigned short)  self->strong_magnitude();
00893    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00894   }
00895  }
00896  return 1;
00897 #ifndef TOLUA_RELEASE
00898  tolua_lerror:
00899  tolua_error(tolua_S,"#ferror in function 'strong_magnitude'.",&tolua_err);
00900  return 0;
00901 #endif
00902 }
00903 #endif //#ifndef TOLUA_DISABLE
00904 
00905 /* method: set_strong_magnitude of class  StartRumbleMessage */
00906 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_strong_magnitude00
00907 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_strong_magnitude00(lua_State* tolua_S)
00908 {
00909 #ifndef TOLUA_RELEASE
00910  tolua_Error tolua_err;
00911  if (
00912      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00913      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00914      !tolua_isnoobj(tolua_S,3,&tolua_err)
00915  )
00916   goto tolua_lerror;
00917  else
00918 #endif
00919  {
00920   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00921   unsigned const short new_strong_magnitude = ((unsigned const short)  tolua_tonumber(tolua_S,2,0));
00922 #ifndef TOLUA_RELEASE
00923   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_strong_magnitude'", NULL);
00924 #endif
00925   {
00926    self->set_strong_magnitude(new_strong_magnitude);
00927   }
00928  }
00929  return 0;
00930 #ifndef TOLUA_RELEASE
00931  tolua_lerror:
00932  tolua_error(tolua_S,"#ferror in function 'set_strong_magnitude'.",&tolua_err);
00933  return 0;
00934 #endif
00935 }
00936 #endif //#ifndef TOLUA_DISABLE
00937 
00938 /* method: maxlenof_strong_magnitude of class  StartRumbleMessage */
00939 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_strong_magnitude00
00940 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_strong_magnitude00(lua_State* tolua_S)
00941 {
00942 #ifndef TOLUA_RELEASE
00943  tolua_Error tolua_err;
00944  if (
00945      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00946      !tolua_isnoobj(tolua_S,2,&tolua_err)
00947  )
00948   goto tolua_lerror;
00949  else
00950 #endif
00951  {
00952   const fawkes::JoystickInterface::StartRumbleMessage* self = (const fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00953 #ifndef TOLUA_RELEASE
00954   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_strong_magnitude'", NULL);
00955 #endif
00956   {
00957    int tolua_ret = (int)  self->maxlenof_strong_magnitude();
00958    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00959   }
00960  }
00961  return 1;
00962 #ifndef TOLUA_RELEASE
00963  tolua_lerror:
00964  tolua_error(tolua_S,"#ferror in function 'maxlenof_strong_magnitude'.",&tolua_err);
00965  return 0;
00966 #endif
00967 }
00968 #endif //#ifndef TOLUA_DISABLE
00969 
00970 /* method: weak_magnitude of class  StartRumbleMessage */
00971 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_weak_magnitude00
00972 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_weak_magnitude00(lua_State* tolua_S)
00973 {
00974 #ifndef TOLUA_RELEASE
00975  tolua_Error tolua_err;
00976  if (
00977      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
00978      !tolua_isnoobj(tolua_S,2,&tolua_err)
00979  )
00980   goto tolua_lerror;
00981  else
00982 #endif
00983  {
00984   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
00985 #ifndef TOLUA_RELEASE
00986   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'weak_magnitude'", NULL);
00987 #endif
00988   {
00989    unsigned short tolua_ret = (unsigned short)  self->weak_magnitude();
00990    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00991   }
00992  }
00993  return 1;
00994 #ifndef TOLUA_RELEASE
00995  tolua_lerror:
00996  tolua_error(tolua_S,"#ferror in function 'weak_magnitude'.",&tolua_err);
00997  return 0;
00998 #endif
00999 }
01000 #endif //#ifndef TOLUA_DISABLE
01001 
01002 /* method: set_weak_magnitude of class  StartRumbleMessage */
01003 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_weak_magnitude00
01004 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_weak_magnitude00(lua_State* tolua_S)
01005 {
01006 #ifndef TOLUA_RELEASE
01007  tolua_Error tolua_err;
01008  if (
01009      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
01010      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01011      !tolua_isnoobj(tolua_S,3,&tolua_err)
01012  )
01013   goto tolua_lerror;
01014  else
01015 #endif
01016  {
01017   fawkes::JoystickInterface::StartRumbleMessage* self = (fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
01018   unsigned const short new_weak_magnitude = ((unsigned const short)  tolua_tonumber(tolua_S,2,0));
01019 #ifndef TOLUA_RELEASE
01020   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_weak_magnitude'", NULL);
01021 #endif
01022   {
01023    self->set_weak_magnitude(new_weak_magnitude);
01024   }
01025  }
01026  return 0;
01027 #ifndef TOLUA_RELEASE
01028  tolua_lerror:
01029  tolua_error(tolua_S,"#ferror in function 'set_weak_magnitude'.",&tolua_err);
01030  return 0;
01031 #endif
01032 }
01033 #endif //#ifndef TOLUA_DISABLE
01034 
01035 /* method: maxlenof_weak_magnitude of class  StartRumbleMessage */
01036 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_weak_magnitude00
01037 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_weak_magnitude00(lua_State* tolua_S)
01038 {
01039 #ifndef TOLUA_RELEASE
01040  tolua_Error tolua_err;
01041  if (
01042      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface::StartRumbleMessage",0,&tolua_err) ||
01043      !tolua_isnoobj(tolua_S,2,&tolua_err)
01044  )
01045   goto tolua_lerror;
01046  else
01047 #endif
01048  {
01049   const fawkes::JoystickInterface::StartRumbleMessage* self = (const fawkes::JoystickInterface::StartRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
01050 #ifndef TOLUA_RELEASE
01051   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_weak_magnitude'", NULL);
01052 #endif
01053   {
01054    int tolua_ret = (int)  self->maxlenof_weak_magnitude();
01055    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01056   }
01057  }
01058  return 1;
01059 #ifndef TOLUA_RELEASE
01060  tolua_lerror:
01061  tolua_error(tolua_S,"#ferror in function 'maxlenof_weak_magnitude'.",&tolua_err);
01062  return 0;
01063 #endif
01064 }
01065 #endif //#ifndef TOLUA_DISABLE
01066 
01067 /* method: new of class  StopRumbleMessage */
01068 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00
01069 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00(lua_State* tolua_S)
01070 {
01071 #ifndef TOLUA_RELEASE
01072  tolua_Error tolua_err;
01073  if (
01074      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StopRumbleMessage",0,&tolua_err) ||
01075      !tolua_isnoobj(tolua_S,2,&tolua_err)
01076  )
01077   goto tolua_lerror;
01078  else
01079 #endif
01080  {
01081   {
01082    fawkes::JoystickInterface::StopRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StopRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StopRumbleMessage)());
01083     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StopRumbleMessage");
01084   }
01085  }
01086  return 1;
01087 #ifndef TOLUA_RELEASE
01088  tolua_lerror:
01089  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01090  return 0;
01091 #endif
01092 }
01093 #endif //#ifndef TOLUA_DISABLE
01094 
01095 /* method: new_local of class  StopRumbleMessage */
01096 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00_local
01097 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00_local(lua_State* tolua_S)
01098 {
01099 #ifndef TOLUA_RELEASE
01100  tolua_Error tolua_err;
01101  if (
01102      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StopRumbleMessage",0,&tolua_err) ||
01103      !tolua_isnoobj(tolua_S,2,&tolua_err)
01104  )
01105   goto tolua_lerror;
01106  else
01107 #endif
01108  {
01109   {
01110    fawkes::JoystickInterface::StopRumbleMessage* tolua_ret = (fawkes::JoystickInterface::StopRumbleMessage*)  Mtolua_new((fawkes::JoystickInterface::StopRumbleMessage)());
01111     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StopRumbleMessage");
01112     tolua_register_gc(tolua_S,lua_gettop(tolua_S));
01113   }
01114  }
01115  return 1;
01116 #ifndef TOLUA_RELEASE
01117  tolua_lerror:
01118  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01119  return 0;
01120 #endif
01121 }
01122 #endif //#ifndef TOLUA_DISABLE
01123 
01124 /* method: delete of class  StopRumbleMessage */
01125 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_delete00
01126 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_delete00(lua_State* tolua_S)
01127 {
01128 #ifndef TOLUA_RELEASE
01129  tolua_Error tolua_err;
01130  if (
01131      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StopRumbleMessage",0,&tolua_err) ||
01132      !tolua_isnoobj(tolua_S,2,&tolua_err)
01133  )
01134   goto tolua_lerror;
01135  else
01136 #endif
01137  {
01138   fawkes::JoystickInterface::StopRumbleMessage* self = (fawkes::JoystickInterface::StopRumbleMessage*)  tolua_tousertype(tolua_S,1,0);
01139 #ifndef TOLUA_RELEASE
01140   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
01141 #endif
01142   Mtolua_delete(self);
01143  }
01144  return 0;
01145 #ifndef TOLUA_RELEASE
01146  tolua_lerror:
01147  tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
01148  return 0;
01149 #endif
01150 }
01151 #endif //#ifndef TOLUA_DISABLE
01152 
01153 /* method: new of class  StopAllMessage */
01154 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00
01155 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00(lua_State* tolua_S)
01156 {
01157 #ifndef TOLUA_RELEASE
01158  tolua_Error tolua_err;
01159  if (
01160      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StopAllMessage",0,&tolua_err) ||
01161      !tolua_isnoobj(tolua_S,2,&tolua_err)
01162  )
01163   goto tolua_lerror;
01164  else
01165 #endif
01166  {
01167   {
01168    fawkes::JoystickInterface::StopAllMessage* tolua_ret = (fawkes::JoystickInterface::StopAllMessage*)  Mtolua_new((fawkes::JoystickInterface::StopAllMessage)());
01169     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StopAllMessage");
01170   }
01171  }
01172  return 1;
01173 #ifndef TOLUA_RELEASE
01174  tolua_lerror:
01175  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01176  return 0;
01177 #endif
01178 }
01179 #endif //#ifndef TOLUA_DISABLE
01180 
01181 /* method: new_local of class  StopAllMessage */
01182 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00_local
01183 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00_local(lua_State* tolua_S)
01184 {
01185 #ifndef TOLUA_RELEASE
01186  tolua_Error tolua_err;
01187  if (
01188      !tolua_isusertable(tolua_S,1,"fawkes::JoystickInterface::StopAllMessage",0,&tolua_err) ||
01189      !tolua_isnoobj(tolua_S,2,&tolua_err)
01190  )
01191   goto tolua_lerror;
01192  else
01193 #endif
01194  {
01195   {
01196    fawkes::JoystickInterface::StopAllMessage* tolua_ret = (fawkes::JoystickInterface::StopAllMessage*)  Mtolua_new((fawkes::JoystickInterface::StopAllMessage)());
01197     tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::JoystickInterface::StopAllMessage");
01198     tolua_register_gc(tolua_S,lua_gettop(tolua_S));
01199   }
01200  }
01201  return 1;
01202 #ifndef TOLUA_RELEASE
01203  tolua_lerror:
01204  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01205  return 0;
01206 #endif
01207 }
01208 #endif //#ifndef TOLUA_DISABLE
01209 
01210 /* method: delete of class  StopAllMessage */
01211 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_delete00
01212 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_delete00(lua_State* tolua_S)
01213 {
01214 #ifndef TOLUA_RELEASE
01215  tolua_Error tolua_err;
01216  if (
01217      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface::StopAllMessage",0,&tolua_err) ||
01218      !tolua_isnoobj(tolua_S,2,&tolua_err)
01219  )
01220   goto tolua_lerror;
01221  else
01222 #endif
01223  {
01224   fawkes::JoystickInterface::StopAllMessage* self = (fawkes::JoystickInterface::StopAllMessage*)  tolua_tousertype(tolua_S,1,0);
01225 #ifndef TOLUA_RELEASE
01226   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
01227 #endif
01228   Mtolua_delete(self);
01229  }
01230  return 0;
01231 #ifndef TOLUA_RELEASE
01232  tolua_lerror:
01233  tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
01234  return 0;
01235 #endif
01236 }
01237 #endif //#ifndef TOLUA_DISABLE
01238 
01239 /* method: num_axes of class  fawkes::JoystickInterface */
01240 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00
01241 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00(lua_State* tolua_S)
01242 {
01243 #ifndef TOLUA_RELEASE
01244  tolua_Error tolua_err;
01245  if (
01246      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01247      !tolua_isnoobj(tolua_S,2,&tolua_err)
01248  )
01249   goto tolua_lerror;
01250  else
01251 #endif
01252  {
01253   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01254 #ifndef TOLUA_RELEASE
01255   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_axes'", NULL);
01256 #endif
01257   {
01258    unsigned char tolua_ret = (unsigned char)  self->num_axes();
01259    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01260   }
01261  }
01262  return 1;
01263 #ifndef TOLUA_RELEASE
01264  tolua_lerror:
01265  tolua_error(tolua_S,"#ferror in function 'num_axes'.",&tolua_err);
01266  return 0;
01267 #endif
01268 }
01269 #endif //#ifndef TOLUA_DISABLE
01270 
01271 /* method: set_num_axes of class  fawkes::JoystickInterface */
01272 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00
01273 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00(lua_State* tolua_S)
01274 {
01275 #ifndef TOLUA_RELEASE
01276  tolua_Error tolua_err;
01277  if (
01278      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01279      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01280      !tolua_isnoobj(tolua_S,3,&tolua_err)
01281  )
01282   goto tolua_lerror;
01283  else
01284 #endif
01285  {
01286   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01287   unsigned const char new_num_axes = ((unsigned const char)  tolua_tonumber(tolua_S,2,0));
01288 #ifndef TOLUA_RELEASE
01289   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_num_axes'", NULL);
01290 #endif
01291   {
01292    self->set_num_axes(new_num_axes);
01293   }
01294  }
01295  return 0;
01296 #ifndef TOLUA_RELEASE
01297  tolua_lerror:
01298  tolua_error(tolua_S,"#ferror in function 'set_num_axes'.",&tolua_err);
01299  return 0;
01300 #endif
01301 }
01302 #endif //#ifndef TOLUA_DISABLE
01303 
01304 /* method: maxlenof_num_axes of class  fawkes::JoystickInterface */
01305 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00
01306 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00(lua_State* tolua_S)
01307 {
01308 #ifndef TOLUA_RELEASE
01309  tolua_Error tolua_err;
01310  if (
01311      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01312      !tolua_isnoobj(tolua_S,2,&tolua_err)
01313  )
01314   goto tolua_lerror;
01315  else
01316 #endif
01317  {
01318   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01319 #ifndef TOLUA_RELEASE
01320   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_num_axes'", NULL);
01321 #endif
01322   {
01323    int tolua_ret = (int)  self->maxlenof_num_axes();
01324    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01325   }
01326  }
01327  return 1;
01328 #ifndef TOLUA_RELEASE
01329  tolua_lerror:
01330  tolua_error(tolua_S,"#ferror in function 'maxlenof_num_axes'.",&tolua_err);
01331  return 0;
01332 #endif
01333 }
01334 #endif //#ifndef TOLUA_DISABLE
01335 
01336 /* method: num_buttons of class  fawkes::JoystickInterface */
01337 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00
01338 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00(lua_State* tolua_S)
01339 {
01340 #ifndef TOLUA_RELEASE
01341  tolua_Error tolua_err;
01342  if (
01343      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01344      !tolua_isnoobj(tolua_S,2,&tolua_err)
01345  )
01346   goto tolua_lerror;
01347  else
01348 #endif
01349  {
01350   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01351 #ifndef TOLUA_RELEASE
01352   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_buttons'", NULL);
01353 #endif
01354   {
01355    unsigned char tolua_ret = (unsigned char)  self->num_buttons();
01356    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01357   }
01358  }
01359  return 1;
01360 #ifndef TOLUA_RELEASE
01361  tolua_lerror:
01362  tolua_error(tolua_S,"#ferror in function 'num_buttons'.",&tolua_err);
01363  return 0;
01364 #endif
01365 }
01366 #endif //#ifndef TOLUA_DISABLE
01367 
01368 /* method: set_num_buttons of class  fawkes::JoystickInterface */
01369 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00
01370 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00(lua_State* tolua_S)
01371 {
01372 #ifndef TOLUA_RELEASE
01373  tolua_Error tolua_err;
01374  if (
01375      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01376      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01377      !tolua_isnoobj(tolua_S,3,&tolua_err)
01378  )
01379   goto tolua_lerror;
01380  else
01381 #endif
01382  {
01383   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01384   unsigned const char new_num_buttons = ((unsigned const char)  tolua_tonumber(tolua_S,2,0));
01385 #ifndef TOLUA_RELEASE
01386   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_num_buttons'", NULL);
01387 #endif
01388   {
01389    self->set_num_buttons(new_num_buttons);
01390   }
01391  }
01392  return 0;
01393 #ifndef TOLUA_RELEASE
01394  tolua_lerror:
01395  tolua_error(tolua_S,"#ferror in function 'set_num_buttons'.",&tolua_err);
01396  return 0;
01397 #endif
01398 }
01399 #endif //#ifndef TOLUA_DISABLE
01400 
01401 /* method: maxlenof_num_buttons of class  fawkes::JoystickInterface */
01402 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00
01403 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00(lua_State* tolua_S)
01404 {
01405 #ifndef TOLUA_RELEASE
01406  tolua_Error tolua_err;
01407  if (
01408      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01409      !tolua_isnoobj(tolua_S,2,&tolua_err)
01410  )
01411   goto tolua_lerror;
01412  else
01413 #endif
01414  {
01415   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01416 #ifndef TOLUA_RELEASE
01417   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_num_buttons'", NULL);
01418 #endif
01419   {
01420    int tolua_ret = (int)  self->maxlenof_num_buttons();
01421    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01422   }
01423  }
01424  return 1;
01425 #ifndef TOLUA_RELEASE
01426  tolua_lerror:
01427  tolua_error(tolua_S,"#ferror in function 'maxlenof_num_buttons'.",&tolua_err);
01428  return 0;
01429 #endif
01430 }
01431 #endif //#ifndef TOLUA_DISABLE
01432 
01433 /* method: supported_ff_effects of class  fawkes::JoystickInterface */
01434 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_supported_ff_effects00
01435 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_supported_ff_effects00(lua_State* tolua_S)
01436 {
01437 #ifndef TOLUA_RELEASE
01438  tolua_Error tolua_err;
01439  if (
01440      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01441      !tolua_isnoobj(tolua_S,2,&tolua_err)
01442  )
01443   goto tolua_lerror;
01444  else
01445 #endif
01446  {
01447   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01448 #ifndef TOLUA_RELEASE
01449   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'supported_ff_effects'", NULL);
01450 #endif
01451   {
01452    unsigned char tolua_ret = (unsigned char)  self->supported_ff_effects();
01453    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01454   }
01455  }
01456  return 1;
01457 #ifndef TOLUA_RELEASE
01458  tolua_lerror:
01459  tolua_error(tolua_S,"#ferror in function 'supported_ff_effects'.",&tolua_err);
01460  return 0;
01461 #endif
01462 }
01463 #endif //#ifndef TOLUA_DISABLE
01464 
01465 /* method: set_supported_ff_effects of class  fawkes::JoystickInterface */
01466 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_supported_ff_effects00
01467 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_supported_ff_effects00(lua_State* tolua_S)
01468 {
01469 #ifndef TOLUA_RELEASE
01470  tolua_Error tolua_err;
01471  if (
01472      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01473      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01474      !tolua_isnoobj(tolua_S,3,&tolua_err)
01475  )
01476   goto tolua_lerror;
01477  else
01478 #endif
01479  {
01480   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01481   unsigned const char new_supported_ff_effects = ((unsigned const char)  tolua_tonumber(tolua_S,2,0));
01482 #ifndef TOLUA_RELEASE
01483   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_supported_ff_effects'", NULL);
01484 #endif
01485   {
01486    self->set_supported_ff_effects(new_supported_ff_effects);
01487   }
01488  }
01489  return 0;
01490 #ifndef TOLUA_RELEASE
01491  tolua_lerror:
01492  tolua_error(tolua_S,"#ferror in function 'set_supported_ff_effects'.",&tolua_err);
01493  return 0;
01494 #endif
01495 }
01496 #endif //#ifndef TOLUA_DISABLE
01497 
01498 /* method: maxlenof_supported_ff_effects of class  fawkes::JoystickInterface */
01499 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_supported_ff_effects00
01500 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_supported_ff_effects00(lua_State* tolua_S)
01501 {
01502 #ifndef TOLUA_RELEASE
01503  tolua_Error tolua_err;
01504  if (
01505      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01506      !tolua_isnoobj(tolua_S,2,&tolua_err)
01507  )
01508   goto tolua_lerror;
01509  else
01510 #endif
01511  {
01512   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01513 #ifndef TOLUA_RELEASE
01514   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_supported_ff_effects'", NULL);
01515 #endif
01516   {
01517    int tolua_ret = (int)  self->maxlenof_supported_ff_effects();
01518    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01519   }
01520  }
01521  return 1;
01522 #ifndef TOLUA_RELEASE
01523  tolua_lerror:
01524  tolua_error(tolua_S,"#ferror in function 'maxlenof_supported_ff_effects'.",&tolua_err);
01525  return 0;
01526 #endif
01527 }
01528 #endif //#ifndef TOLUA_DISABLE
01529 
01530 /* method: pressed_buttons of class  fawkes::JoystickInterface */
01531 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00
01532 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00(lua_State* tolua_S)
01533 {
01534 #ifndef TOLUA_RELEASE
01535  tolua_Error tolua_err;
01536  if (
01537      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01538      !tolua_isnoobj(tolua_S,2,&tolua_err)
01539  )
01540   goto tolua_lerror;
01541  else
01542 #endif
01543  {
01544   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01545 #ifndef TOLUA_RELEASE
01546   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pressed_buttons'", NULL);
01547 #endif
01548   {
01549    unsigned int tolua_ret = (unsigned int)  self->pressed_buttons();
01550    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01551   }
01552  }
01553  return 1;
01554 #ifndef TOLUA_RELEASE
01555  tolua_lerror:
01556  tolua_error(tolua_S,"#ferror in function 'pressed_buttons'.",&tolua_err);
01557  return 0;
01558 #endif
01559 }
01560 #endif //#ifndef TOLUA_DISABLE
01561 
01562 /* method: set_pressed_buttons of class  fawkes::JoystickInterface */
01563 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00
01564 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00(lua_State* tolua_S)
01565 {
01566 #ifndef TOLUA_RELEASE
01567  tolua_Error tolua_err;
01568  if (
01569      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01570      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01571      !tolua_isnoobj(tolua_S,3,&tolua_err)
01572  )
01573   goto tolua_lerror;
01574  else
01575 #endif
01576  {
01577   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01578   unsigned const int new_pressed_buttons = ((unsigned const int)  tolua_tonumber(tolua_S,2,0));
01579 #ifndef TOLUA_RELEASE
01580   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_pressed_buttons'", NULL);
01581 #endif
01582   {
01583    self->set_pressed_buttons(new_pressed_buttons);
01584   }
01585  }
01586  return 0;
01587 #ifndef TOLUA_RELEASE
01588  tolua_lerror:
01589  tolua_error(tolua_S,"#ferror in function 'set_pressed_buttons'.",&tolua_err);
01590  return 0;
01591 #endif
01592 }
01593 #endif //#ifndef TOLUA_DISABLE
01594 
01595 /* method: maxlenof_pressed_buttons of class  fawkes::JoystickInterface */
01596 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00
01597 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00(lua_State* tolua_S)
01598 {
01599 #ifndef TOLUA_RELEASE
01600  tolua_Error tolua_err;
01601  if (
01602      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01603      !tolua_isnoobj(tolua_S,2,&tolua_err)
01604  )
01605   goto tolua_lerror;
01606  else
01607 #endif
01608  {
01609   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01610 #ifndef TOLUA_RELEASE
01611   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_pressed_buttons'", NULL);
01612 #endif
01613   {
01614    int tolua_ret = (int)  self->maxlenof_pressed_buttons();
01615    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01616   }
01617  }
01618  return 1;
01619 #ifndef TOLUA_RELEASE
01620  tolua_lerror:
01621  tolua_error(tolua_S,"#ferror in function 'maxlenof_pressed_buttons'.",&tolua_err);
01622  return 0;
01623 #endif
01624 }
01625 #endif //#ifndef TOLUA_DISABLE
01626 
01627 /* method: axis of class  fawkes::JoystickInterface */
01628 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis00
01629 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis00(lua_State* tolua_S)
01630 {
01631 #ifndef TOLUA_RELEASE
01632  tolua_Error tolua_err;
01633  if (
01634      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01635      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01636      !tolua_isnoobj(tolua_S,3,&tolua_err)
01637  )
01638   goto tolua_lerror;
01639  else
01640 #endif
01641  {
01642   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01643   int index = ((int)  tolua_tonumber(tolua_S,2,0));
01644 #ifndef TOLUA_RELEASE
01645   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'axis'", NULL);
01646 #endif
01647   {
01648    float tolua_ret = (float)  self->axis(index);
01649    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01650   }
01651  }
01652  return 1;
01653 #ifndef TOLUA_RELEASE
01654  tolua_lerror:
01655  tolua_error(tolua_S,"#ferror in function 'axis'.",&tolua_err);
01656  return 0;
01657 #endif
01658 }
01659 #endif //#ifndef TOLUA_DISABLE
01660 
01661 /* method: set_axis of class  fawkes::JoystickInterface */
01662 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis00
01663 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis00(lua_State* tolua_S)
01664 {
01665 #ifndef TOLUA_RELEASE
01666  tolua_Error tolua_err;
01667  if (
01668      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01669      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01670      !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
01671      !tolua_isnoobj(tolua_S,4,&tolua_err)
01672  )
01673   goto tolua_lerror;
01674  else
01675 #endif
01676  {
01677   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01678   unsigned int index = ((unsigned int)  tolua_tonumber(tolua_S,2,0));
01679   const float new_axis = ((const float)  tolua_tonumber(tolua_S,3,0));
01680 #ifndef TOLUA_RELEASE
01681   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_axis'", NULL);
01682 #endif
01683   {
01684    self->set_axis(index,new_axis);
01685   }
01686  }
01687  return 0;
01688 #ifndef TOLUA_RELEASE
01689  tolua_lerror:
01690  tolua_error(tolua_S,"#ferror in function 'set_axis'.",&tolua_err);
01691  return 0;
01692 #endif
01693 }
01694 #endif //#ifndef TOLUA_DISABLE
01695 
01696 /* method: maxlenof_axis of class  fawkes::JoystickInterface */
01697 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis00
01698 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis00(lua_State* tolua_S)
01699 {
01700 #ifndef TOLUA_RELEASE
01701  tolua_Error tolua_err;
01702  if (
01703      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01704      !tolua_isnoobj(tolua_S,2,&tolua_err)
01705  )
01706   goto tolua_lerror;
01707  else
01708 #endif
01709  {
01710   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01711 #ifndef TOLUA_RELEASE
01712   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_axis'", NULL);
01713 #endif
01714   {
01715    int tolua_ret = (int)  self->maxlenof_axis();
01716    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01717   }
01718  }
01719  return 1;
01720 #ifndef TOLUA_RELEASE
01721  tolua_lerror:
01722  tolua_error(tolua_S,"#ferror in function 'maxlenof_axis'.",&tolua_err);
01723  return 0;
01724 #endif
01725 }
01726 #endif //#ifndef TOLUA_DISABLE
01727 
01728 /* method: ff_effects of class  fawkes::JoystickInterface */
01729 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_ff_effects00
01730 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_ff_effects00(lua_State* tolua_S)
01731 {
01732 #ifndef TOLUA_RELEASE
01733  tolua_Error tolua_err;
01734  if (
01735      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01736      !tolua_isnoobj(tolua_S,2,&tolua_err)
01737  )
01738   goto tolua_lerror;
01739  else
01740 #endif
01741  {
01742   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01743 #ifndef TOLUA_RELEASE
01744   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ff_effects'", NULL);
01745 #endif
01746   {
01747    unsigned char tolua_ret = (unsigned char)  self->ff_effects();
01748    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01749   }
01750  }
01751  return 1;
01752 #ifndef TOLUA_RELEASE
01753  tolua_lerror:
01754  tolua_error(tolua_S,"#ferror in function 'ff_effects'.",&tolua_err);
01755  return 0;
01756 #endif
01757 }
01758 #endif //#ifndef TOLUA_DISABLE
01759 
01760 /* method: set_ff_effects of class  fawkes::JoystickInterface */
01761 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_ff_effects00
01762 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_ff_effects00(lua_State* tolua_S)
01763 {
01764 #ifndef TOLUA_RELEASE
01765  tolua_Error tolua_err;
01766  if (
01767      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
01768      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01769      !tolua_isnoobj(tolua_S,3,&tolua_err)
01770  )
01771   goto tolua_lerror;
01772  else
01773 #endif
01774  {
01775   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01776   unsigned const char new_ff_effects = ((unsigned const char)  tolua_tonumber(tolua_S,2,0));
01777 #ifndef TOLUA_RELEASE
01778   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_ff_effects'", NULL);
01779 #endif
01780   {
01781    self->set_ff_effects(new_ff_effects);
01782   }
01783  }
01784  return 0;
01785 #ifndef TOLUA_RELEASE
01786  tolua_lerror:
01787  tolua_error(tolua_S,"#ferror in function 'set_ff_effects'.",&tolua_err);
01788  return 0;
01789 #endif
01790 }
01791 #endif //#ifndef TOLUA_DISABLE
01792 
01793 /* method: maxlenof_ff_effects of class  fawkes::JoystickInterface */
01794 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_ff_effects00
01795 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_ff_effects00(lua_State* tolua_S)
01796 {
01797 #ifndef TOLUA_RELEASE
01798  tolua_Error tolua_err;
01799  if (
01800      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01801      !tolua_isnoobj(tolua_S,2,&tolua_err)
01802  )
01803   goto tolua_lerror;
01804  else
01805 #endif
01806  {
01807   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01808 #ifndef TOLUA_RELEASE
01809   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_ff_effects'", NULL);
01810 #endif
01811   {
01812    int tolua_ret = (int)  self->maxlenof_ff_effects();
01813    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01814   }
01815  }
01816  return 1;
01817 #ifndef TOLUA_RELEASE
01818  tolua_lerror:
01819  tolua_error(tolua_S,"#ferror in function 'maxlenof_ff_effects'.",&tolua_err);
01820  return 0;
01821 #endif
01822 }
01823 #endif //#ifndef TOLUA_DISABLE
01824 
01825 /* method: oftype of class  fawkes::JoystickInterface */
01826 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00
01827 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00(lua_State* tolua_S)
01828 {
01829 #ifndef TOLUA_RELEASE
01830  tolua_Error tolua_err;
01831  if (
01832      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01833      !tolua_isstring(tolua_S,2,0,&tolua_err) ||
01834      !tolua_isnoobj(tolua_S,3,&tolua_err)
01835  )
01836   goto tolua_lerror;
01837  else
01838 #endif
01839  {
01840   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01841   const char* interface_type = ((const char*)  tolua_tostring(tolua_S,2,0));
01842 #ifndef TOLUA_RELEASE
01843   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL);
01844 #endif
01845   {
01846    bool tolua_ret = (bool)  self->oftype(interface_type);
01847    tolua_pushboolean(tolua_S,(bool)tolua_ret);
01848   }
01849  }
01850  return 1;
01851 #ifndef TOLUA_RELEASE
01852  tolua_lerror:
01853  tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err);
01854  return 0;
01855 #endif
01856 }
01857 #endif //#ifndef TOLUA_DISABLE
01858 
01859 /* method: datachunk of class  fawkes::JoystickInterface */
01860 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00
01861 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00(lua_State* tolua_S)
01862 {
01863 #ifndef TOLUA_RELEASE
01864  tolua_Error tolua_err;
01865  if (
01866      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01867      !tolua_isnoobj(tolua_S,2,&tolua_err)
01868  )
01869   goto tolua_lerror;
01870  else
01871 #endif
01872  {
01873   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01874 #ifndef TOLUA_RELEASE
01875   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL);
01876 #endif
01877   {
01878    const void* tolua_ret = (const void*)  self->datachunk();
01879    tolua_pushuserdata(tolua_S,(void*)tolua_ret);
01880   }
01881  }
01882  return 1;
01883 #ifndef TOLUA_RELEASE
01884  tolua_lerror:
01885  tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err);
01886  return 0;
01887 #endif
01888 }
01889 #endif //#ifndef TOLUA_DISABLE
01890 
01891 /* method: datasize of class  fawkes::JoystickInterface */
01892 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00
01893 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00(lua_State* tolua_S)
01894 {
01895 #ifndef TOLUA_RELEASE
01896  tolua_Error tolua_err;
01897  if (
01898      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01899      !tolua_isnoobj(tolua_S,2,&tolua_err)
01900  )
01901   goto tolua_lerror;
01902  else
01903 #endif
01904  {
01905   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01906 #ifndef TOLUA_RELEASE
01907   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL);
01908 #endif
01909   {
01910    unsigned int tolua_ret = (unsigned int)  self->datasize();
01911    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01912   }
01913  }
01914  return 1;
01915 #ifndef TOLUA_RELEASE
01916  tolua_lerror:
01917  tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err);
01918  return 0;
01919 #endif
01920 }
01921 #endif //#ifndef TOLUA_DISABLE
01922 
01923 /* method: type of class  fawkes::JoystickInterface */
01924 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00
01925 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00(lua_State* tolua_S)
01926 {
01927 #ifndef TOLUA_RELEASE
01928  tolua_Error tolua_err;
01929  if (
01930      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01931      !tolua_isnoobj(tolua_S,2,&tolua_err)
01932  )
01933   goto tolua_lerror;
01934  else
01935 #endif
01936  {
01937   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01938 #ifndef TOLUA_RELEASE
01939   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL);
01940 #endif
01941   {
01942    const char* tolua_ret = (const char*)  self->type();
01943    tolua_pushstring(tolua_S,(const char*)tolua_ret);
01944   }
01945  }
01946  return 1;
01947 #ifndef TOLUA_RELEASE
01948  tolua_lerror:
01949  tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err);
01950  return 0;
01951 #endif
01952 }
01953 #endif //#ifndef TOLUA_DISABLE
01954 
01955 /* method: id of class  fawkes::JoystickInterface */
01956 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00
01957 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00(lua_State* tolua_S)
01958 {
01959 #ifndef TOLUA_RELEASE
01960  tolua_Error tolua_err;
01961  if (
01962      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01963      !tolua_isnoobj(tolua_S,2,&tolua_err)
01964  )
01965   goto tolua_lerror;
01966  else
01967 #endif
01968  {
01969   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
01970 #ifndef TOLUA_RELEASE
01971   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL);
01972 #endif
01973   {
01974    const char* tolua_ret = (const char*)  self->id();
01975    tolua_pushstring(tolua_S,(const char*)tolua_ret);
01976   }
01977  }
01978  return 1;
01979 #ifndef TOLUA_RELEASE
01980  tolua_lerror:
01981  tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err);
01982  return 0;
01983 #endif
01984 }
01985 #endif //#ifndef TOLUA_DISABLE
01986 
01987 /* method: uid of class  fawkes::JoystickInterface */
01988 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00
01989 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00(lua_State* tolua_S)
01990 {
01991 #ifndef TOLUA_RELEASE
01992  tolua_Error tolua_err;
01993  if (
01994      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
01995      !tolua_isnoobj(tolua_S,2,&tolua_err)
01996  )
01997   goto tolua_lerror;
01998  else
01999 #endif
02000  {
02001   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02002 #ifndef TOLUA_RELEASE
02003   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL);
02004 #endif
02005   {
02006    const char* tolua_ret = (const char*)  self->uid();
02007    tolua_pushstring(tolua_S,(const char*)tolua_ret);
02008   }
02009  }
02010  return 1;
02011 #ifndef TOLUA_RELEASE
02012  tolua_lerror:
02013  tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err);
02014  return 0;
02015 #endif
02016 }
02017 #endif //#ifndef TOLUA_DISABLE
02018 
02019 /* method: serial of class  fawkes::JoystickInterface */
02020 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00
02021 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00(lua_State* tolua_S)
02022 {
02023 #ifndef TOLUA_RELEASE
02024  tolua_Error tolua_err;
02025  if (
02026      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02027      !tolua_isnoobj(tolua_S,2,&tolua_err)
02028  )
02029   goto tolua_lerror;
02030  else
02031 #endif
02032  {
02033   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02034 #ifndef TOLUA_RELEASE
02035   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL);
02036 #endif
02037   {
02038    unsigned int tolua_ret = (unsigned int)  self->serial();
02039    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02040   }
02041  }
02042  return 1;
02043 #ifndef TOLUA_RELEASE
02044  tolua_lerror:
02045  tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err);
02046  return 0;
02047 #endif
02048 }
02049 #endif //#ifndef TOLUA_DISABLE
02050 
02051 /* method: mem_serial of class  fawkes::JoystickInterface */
02052 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00
02053 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00(lua_State* tolua_S)
02054 {
02055 #ifndef TOLUA_RELEASE
02056  tolua_Error tolua_err;
02057  if (
02058      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02059      !tolua_isnoobj(tolua_S,2,&tolua_err)
02060  )
02061   goto tolua_lerror;
02062  else
02063 #endif
02064  {
02065   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02066 #ifndef TOLUA_RELEASE
02067   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL);
02068 #endif
02069   {
02070    unsigned int tolua_ret = (unsigned int)  self->mem_serial();
02071    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02072   }
02073  }
02074  return 1;
02075 #ifndef TOLUA_RELEASE
02076  tolua_lerror:
02077  tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err);
02078  return 0;
02079 #endif
02080 }
02081 #endif //#ifndef TOLUA_DISABLE
02082 
02083 /* method: operator== of class  fawkes::JoystickInterface */
02084 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00
02085 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00(lua_State* tolua_S)
02086 {
02087 #ifndef TOLUA_RELEASE
02088  tolua_Error tolua_err;
02089  if (
02090      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02091      (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err)) ||
02092      !tolua_isnoobj(tolua_S,3,&tolua_err)
02093  )
02094   goto tolua_lerror;
02095  else
02096 #endif
02097  {
02098   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02099   Interface* comp = ((Interface*)  tolua_tousertype(tolua_S,2,0));
02100 #ifndef TOLUA_RELEASE
02101   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
02102 #endif
02103   {
02104    bool tolua_ret = (bool)  self->operator==(*comp);
02105    tolua_pushboolean(tolua_S,(bool)tolua_ret);
02106   }
02107  }
02108  return 1;
02109 #ifndef TOLUA_RELEASE
02110  tolua_lerror:
02111  tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
02112  return 0;
02113 #endif
02114 }
02115 #endif //#ifndef TOLUA_DISABLE
02116 
02117 /* method: hash of class  fawkes::JoystickInterface */
02118 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00
02119 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00(lua_State* tolua_S)
02120 {
02121 #ifndef TOLUA_RELEASE
02122  tolua_Error tolua_err;
02123  if (
02124      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02125      !tolua_isnoobj(tolua_S,2,&tolua_err)
02126  )
02127   goto tolua_lerror;
02128  else
02129 #endif
02130  {
02131   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02132 #ifndef TOLUA_RELEASE
02133   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL);
02134 #endif
02135   {
02136    unsigned const char* tolua_ret = ( unsigned const char*)  self->hash();
02137    tolua_pushstring(tolua_S,(const char*)tolua_ret);
02138   }
02139  }
02140  return 1;
02141 #ifndef TOLUA_RELEASE
02142  tolua_lerror:
02143  tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err);
02144  return 0;
02145 #endif
02146 }
02147 #endif //#ifndef TOLUA_DISABLE
02148 
02149 /* method: hash_size of class  fawkes::JoystickInterface */
02150 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00
02151 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00(lua_State* tolua_S)
02152 {
02153 #ifndef TOLUA_RELEASE
02154  tolua_Error tolua_err;
02155  if (
02156      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02157      !tolua_isnoobj(tolua_S,2,&tolua_err)
02158  )
02159   goto tolua_lerror;
02160  else
02161 #endif
02162  {
02163   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02164 #ifndef TOLUA_RELEASE
02165   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL);
02166 #endif
02167   {
02168    int tolua_ret = (int)  self->hash_size();
02169    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02170   }
02171  }
02172  return 1;
02173 #ifndef TOLUA_RELEASE
02174  tolua_lerror:
02175  tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err);
02176  return 0;
02177 #endif
02178 }
02179 #endif //#ifndef TOLUA_DISABLE
02180 
02181 /* method: hash_printable of class  fawkes::JoystickInterface */
02182 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00
02183 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00(lua_State* tolua_S)
02184 {
02185 #ifndef TOLUA_RELEASE
02186  tolua_Error tolua_err;
02187  if (
02188      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02189      !tolua_isnoobj(tolua_S,2,&tolua_err)
02190  )
02191   goto tolua_lerror;
02192  else
02193 #endif
02194  {
02195   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02196 #ifndef TOLUA_RELEASE
02197   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL);
02198 #endif
02199   {
02200    const char* tolua_ret = (const char*)  self->hash_printable();
02201    tolua_pushstring(tolua_S,(const char*)tolua_ret);
02202   }
02203  }
02204  return 1;
02205 #ifndef TOLUA_RELEASE
02206  tolua_lerror:
02207  tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err);
02208  return 0;
02209 #endif
02210 }
02211 #endif //#ifndef TOLUA_DISABLE
02212 
02213 /* method: is_writer of class  fawkes::JoystickInterface */
02214 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00
02215 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00(lua_State* tolua_S)
02216 {
02217 #ifndef TOLUA_RELEASE
02218  tolua_Error tolua_err;
02219  if (
02220      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02221      !tolua_isnoobj(tolua_S,2,&tolua_err)
02222  )
02223   goto tolua_lerror;
02224  else
02225 #endif
02226  {
02227   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02228 #ifndef TOLUA_RELEASE
02229   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL);
02230 #endif
02231   {
02232    bool tolua_ret = (bool)  self->is_writer();
02233    tolua_pushboolean(tolua_S,(bool)tolua_ret);
02234   }
02235  }
02236  return 1;
02237 #ifndef TOLUA_RELEASE
02238  tolua_lerror:
02239  tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err);
02240  return 0;
02241 #endif
02242 }
02243 #endif //#ifndef TOLUA_DISABLE
02244 
02245 /* method: set_from_chunk of class  fawkes::JoystickInterface */
02246 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00
02247 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00(lua_State* tolua_S)
02248 {
02249 #ifndef TOLUA_RELEASE
02250  tolua_Error tolua_err;
02251  if (
02252      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02253      !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
02254      !tolua_isnoobj(tolua_S,3,&tolua_err)
02255  )
02256   goto tolua_lerror;
02257  else
02258 #endif
02259  {
02260   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02261   void* chunk = ((void*)  tolua_touserdata(tolua_S,2,0));
02262 #ifndef TOLUA_RELEASE
02263   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL);
02264 #endif
02265   {
02266    self->set_from_chunk(chunk);
02267   }
02268  }
02269  return 0;
02270 #ifndef TOLUA_RELEASE
02271  tolua_lerror:
02272  tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err);
02273  return 0;
02274 #endif
02275 }
02276 #endif //#ifndef TOLUA_DISABLE
02277 
02278 /* method: create_message of class  fawkes::JoystickInterface */
02279 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00
02280 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00(lua_State* tolua_S)
02281 {
02282 #ifndef TOLUA_RELEASE
02283  tolua_Error tolua_err;
02284  if (
02285      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02286      !tolua_isstring(tolua_S,2,0,&tolua_err) ||
02287      !tolua_isnoobj(tolua_S,3,&tolua_err)
02288  )
02289   goto tolua_lerror;
02290  else
02291 #endif
02292  {
02293   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02294   const char* type = ((const char*)  tolua_tostring(tolua_S,2,0));
02295 #ifndef TOLUA_RELEASE
02296   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL);
02297 #endif
02298   {
02299    Message* tolua_ret = (Message*)  self->create_message(type);
02300     tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message");
02301   }
02302  }
02303  return 1;
02304 #ifndef TOLUA_RELEASE
02305  tolua_lerror:
02306  tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err);
02307  return 0;
02308 #endif
02309 }
02310 #endif //#ifndef TOLUA_DISABLE
02311 
02312 /* method: read of class  fawkes::JoystickInterface */
02313 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00
02314 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00(lua_State* tolua_S)
02315 {
02316 #ifndef TOLUA_RELEASE
02317  tolua_Error tolua_err;
02318  if (
02319      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02320      !tolua_isnoobj(tolua_S,2,&tolua_err)
02321  )
02322   goto tolua_lerror;
02323  else
02324 #endif
02325  {
02326   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02327 #ifndef TOLUA_RELEASE
02328   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL);
02329 #endif
02330   {
02331    self->read();
02332   }
02333  }
02334  return 0;
02335 #ifndef TOLUA_RELEASE
02336  tolua_lerror:
02337  tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err);
02338  return 0;
02339 #endif
02340 }
02341 #endif //#ifndef TOLUA_DISABLE
02342 
02343 /* method: write of class  fawkes::JoystickInterface */
02344 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00
02345 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00(lua_State* tolua_S)
02346 {
02347 #ifndef TOLUA_RELEASE
02348  tolua_Error tolua_err;
02349  if (
02350      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02351      !tolua_isnoobj(tolua_S,2,&tolua_err)
02352  )
02353   goto tolua_lerror;
02354  else
02355 #endif
02356  {
02357   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02358 #ifndef TOLUA_RELEASE
02359   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL);
02360 #endif
02361   {
02362    self->write();
02363   }
02364  }
02365  return 0;
02366 #ifndef TOLUA_RELEASE
02367  tolua_lerror:
02368  tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err);
02369  return 0;
02370 #endif
02371 }
02372 #endif //#ifndef TOLUA_DISABLE
02373 
02374 /* method: has_writer of class  fawkes::JoystickInterface */
02375 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00
02376 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00(lua_State* tolua_S)
02377 {
02378 #ifndef TOLUA_RELEASE
02379  tolua_Error tolua_err;
02380  if (
02381      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02382      !tolua_isnoobj(tolua_S,2,&tolua_err)
02383  )
02384   goto tolua_lerror;
02385  else
02386 #endif
02387  {
02388   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02389 #ifndef TOLUA_RELEASE
02390   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL);
02391 #endif
02392   {
02393    bool tolua_ret = (bool)  self->has_writer();
02394    tolua_pushboolean(tolua_S,(bool)tolua_ret);
02395   }
02396  }
02397  return 1;
02398 #ifndef TOLUA_RELEASE
02399  tolua_lerror:
02400  tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err);
02401  return 0;
02402 #endif
02403 }
02404 #endif //#ifndef TOLUA_DISABLE
02405 
02406 /* method: num_readers of class  fawkes::JoystickInterface */
02407 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00
02408 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00(lua_State* tolua_S)
02409 {
02410 #ifndef TOLUA_RELEASE
02411  tolua_Error tolua_err;
02412  if (
02413      !tolua_isusertype(tolua_S,1,"const fawkes::JoystickInterface",0,&tolua_err) ||
02414      !tolua_isnoobj(tolua_S,2,&tolua_err)
02415  )
02416   goto tolua_lerror;
02417  else
02418 #endif
02419  {
02420   const fawkes::JoystickInterface* self = (const fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02421 #ifndef TOLUA_RELEASE
02422   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL);
02423 #endif
02424   {
02425    unsigned int tolua_ret = (unsigned int)  self->num_readers();
02426    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02427   }
02428  }
02429  return 1;
02430 #ifndef TOLUA_RELEASE
02431  tolua_lerror:
02432  tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err);
02433  return 0;
02434 #endif
02435 }
02436 #endif //#ifndef TOLUA_DISABLE
02437 
02438 /* method: msgq_enqueue_copy of class  fawkes::JoystickInterface */
02439 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00
02440 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00(lua_State* tolua_S)
02441 {
02442 #ifndef TOLUA_RELEASE
02443  tolua_Error tolua_err;
02444  if (
02445      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02446      !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) ||
02447      !tolua_isnoobj(tolua_S,3,&tolua_err)
02448  )
02449   goto tolua_lerror;
02450  else
02451 #endif
02452  {
02453   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02454   Message* message = ((Message*)  tolua_tousertype(tolua_S,2,0));
02455 #ifndef TOLUA_RELEASE
02456   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL);
02457 #endif
02458   {
02459    unsigned int tolua_ret = (unsigned int)  self->msgq_enqueue_copy(message);
02460    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02461   }
02462  }
02463  return 1;
02464 #ifndef TOLUA_RELEASE
02465  tolua_lerror:
02466  tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
02467  return 0;
02468 #endif
02469 }
02470 #endif //#ifndef TOLUA_DISABLE
02471 
02472 /* method: msgq_remove of class  fawkes::JoystickInterface */
02473 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00
02474 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00(lua_State* tolua_S)
02475 {
02476 #ifndef TOLUA_RELEASE
02477  tolua_Error tolua_err;
02478  if (
02479      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02480      !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) ||
02481      !tolua_isnoobj(tolua_S,3,&tolua_err)
02482  )
02483   goto tolua_lerror;
02484  else
02485 #endif
02486  {
02487   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02488   Message* message = ((Message*)  tolua_tousertype(tolua_S,2,0));
02489 #ifndef TOLUA_RELEASE
02490   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL);
02491 #endif
02492   {
02493    self->msgq_remove(message);
02494   }
02495  }
02496  return 0;
02497 #ifndef TOLUA_RELEASE
02498  tolua_lerror:
02499  tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err);
02500  return 0;
02501 #endif
02502 }
02503 #endif //#ifndef TOLUA_DISABLE
02504 
02505 /* method: msgq_remove of class  fawkes::JoystickInterface */
02506 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01
02507 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01(lua_State* tolua_S)
02508 {
02509  tolua_Error tolua_err;
02510  if (
02511      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02512      !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02513      !tolua_isnoobj(tolua_S,3,&tolua_err)
02514  )
02515   goto tolua_lerror;
02516  else
02517  {
02518   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02519   unsigned int message_id = ((unsigned int)  tolua_tonumber(tolua_S,2,0));
02520 #ifndef TOLUA_RELEASE
02521   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL);
02522 #endif
02523   {
02524    self->msgq_remove(message_id);
02525   }
02526  }
02527  return 0;
02528 tolua_lerror:
02529  return tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00(tolua_S);
02530 }
02531 #endif //#ifndef TOLUA_DISABLE
02532 
02533 /* method: msgq_size of class  fawkes::JoystickInterface */
02534 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00
02535 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00(lua_State* tolua_S)
02536 {
02537 #ifndef TOLUA_RELEASE
02538  tolua_Error tolua_err;
02539  if (
02540      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02541      !tolua_isnoobj(tolua_S,2,&tolua_err)
02542  )
02543   goto tolua_lerror;
02544  else
02545 #endif
02546  {
02547   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02548 #ifndef TOLUA_RELEASE
02549   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL);
02550 #endif
02551   {
02552    unsigned int tolua_ret = (unsigned int)  self->msgq_size();
02553    tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02554   }
02555  }
02556  return 1;
02557 #ifndef TOLUA_RELEASE
02558  tolua_lerror:
02559  tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err);
02560  return 0;
02561 #endif
02562 }
02563 #endif //#ifndef TOLUA_DISABLE
02564 
02565 /* method: msgq_flush of class  fawkes::JoystickInterface */
02566 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00
02567 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00(lua_State* tolua_S)
02568 {
02569 #ifndef TOLUA_RELEASE
02570  tolua_Error tolua_err;
02571  if (
02572      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02573      !tolua_isnoobj(tolua_S,2,&tolua_err)
02574  )
02575   goto tolua_lerror;
02576  else
02577 #endif
02578  {
02579   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02580 #ifndef TOLUA_RELEASE
02581   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL);
02582 #endif
02583   {
02584    self->msgq_flush();
02585   }
02586  }
02587  return 0;
02588 #ifndef TOLUA_RELEASE
02589  tolua_lerror:
02590  tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err);
02591  return 0;
02592 #endif
02593 }
02594 #endif //#ifndef TOLUA_DISABLE
02595 
02596 /* method: msgq_lock of class  fawkes::JoystickInterface */
02597 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00
02598 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00(lua_State* tolua_S)
02599 {
02600 #ifndef TOLUA_RELEASE
02601  tolua_Error tolua_err;
02602  if (
02603      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02604      !tolua_isnoobj(tolua_S,2,&tolua_err)
02605  )
02606   goto tolua_lerror;
02607  else
02608 #endif
02609  {
02610   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02611 #ifndef TOLUA_RELEASE
02612   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL);
02613 #endif
02614   {
02615    self->msgq_lock();
02616   }
02617  }
02618  return 0;
02619 #ifndef TOLUA_RELEASE
02620  tolua_lerror:
02621  tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err);
02622  return 0;
02623 #endif
02624 }
02625 #endif //#ifndef TOLUA_DISABLE
02626 
02627 /* method: msgq_try_lock of class  fawkes::JoystickInterface */
02628 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00
02629 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00(lua_State* tolua_S)
02630 {
02631 #ifndef TOLUA_RELEASE
02632  tolua_Error tolua_err;
02633  if (
02634      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02635      !tolua_isnoobj(tolua_S,2,&tolua_err)
02636  )
02637   goto tolua_lerror;
02638  else
02639 #endif
02640  {
02641   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02642 #ifndef TOLUA_RELEASE
02643   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL);
02644 #endif
02645   {
02646    bool tolua_ret = (bool)  self->msgq_try_lock();
02647    tolua_pushboolean(tolua_S,(bool)tolua_ret);
02648   }
02649  }
02650  return 1;
02651 #ifndef TOLUA_RELEASE
02652  tolua_lerror:
02653  tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err);
02654  return 0;
02655 #endif
02656 }
02657 #endif //#ifndef TOLUA_DISABLE
02658 
02659 /* method: msgq_unlock of class  fawkes::JoystickInterface */
02660 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00
02661 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00(lua_State* tolua_S)
02662 {
02663 #ifndef TOLUA_RELEASE
02664  tolua_Error tolua_err;
02665  if (
02666      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02667      !tolua_isnoobj(tolua_S,2,&tolua_err)
02668  )
02669   goto tolua_lerror;
02670  else
02671 #endif
02672  {
02673   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02674 #ifndef TOLUA_RELEASE
02675   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL);
02676 #endif
02677   {
02678    self->msgq_unlock();
02679   }
02680  }
02681  return 0;
02682 #ifndef TOLUA_RELEASE
02683  tolua_lerror:
02684  tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err);
02685  return 0;
02686 #endif
02687 }
02688 #endif //#ifndef TOLUA_DISABLE
02689 
02690 /* method: msgq_pop of class  fawkes::JoystickInterface */
02691 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00
02692 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00(lua_State* tolua_S)
02693 {
02694 #ifndef TOLUA_RELEASE
02695  tolua_Error tolua_err;
02696  if (
02697      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02698      !tolua_isnoobj(tolua_S,2,&tolua_err)
02699  )
02700   goto tolua_lerror;
02701  else
02702 #endif
02703  {
02704   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02705 #ifndef TOLUA_RELEASE
02706   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL);
02707 #endif
02708   {
02709    self->msgq_pop();
02710   }
02711  }
02712  return 0;
02713 #ifndef TOLUA_RELEASE
02714  tolua_lerror:
02715  tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err);
02716  return 0;
02717 #endif
02718 }
02719 #endif //#ifndef TOLUA_DISABLE
02720 
02721 /* method: msgq_first of class  fawkes::JoystickInterface */
02722 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00
02723 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00(lua_State* tolua_S)
02724 {
02725 #ifndef TOLUA_RELEASE
02726  tolua_Error tolua_err;
02727  if (
02728      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02729      !tolua_isnoobj(tolua_S,2,&tolua_err)
02730  )
02731   goto tolua_lerror;
02732  else
02733 #endif
02734  {
02735   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02736 #ifndef TOLUA_RELEASE
02737   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL);
02738 #endif
02739   {
02740    Message* tolua_ret = (Message*)  self->msgq_first();
02741     tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message");
02742   }
02743  }
02744  return 1;
02745 #ifndef TOLUA_RELEASE
02746  tolua_lerror:
02747  tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err);
02748  return 0;
02749 #endif
02750 }
02751 #endif //#ifndef TOLUA_DISABLE
02752 
02753 /* method: msgq_empty of class  fawkes::JoystickInterface */
02754 #ifndef TOLUA_DISABLE_tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00
02755 static int tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00(lua_State* tolua_S)
02756 {
02757 #ifndef TOLUA_RELEASE
02758  tolua_Error tolua_err;
02759  if (
02760      !tolua_isusertype(tolua_S,1,"fawkes::JoystickInterface",0,&tolua_err) ||
02761      !tolua_isnoobj(tolua_S,2,&tolua_err)
02762  )
02763   goto tolua_lerror;
02764  else
02765 #endif
02766  {
02767   fawkes::JoystickInterface* self = (fawkes::JoystickInterface*)  tolua_tousertype(tolua_S,1,0);
02768 #ifndef TOLUA_RELEASE
02769   if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL);
02770 #endif
02771   {
02772    bool tolua_ret = (bool)  self->msgq_empty();
02773    tolua_pushboolean(tolua_S,(bool)tolua_ret);
02774   }
02775  }
02776  return 1;
02777 #ifndef TOLUA_RELEASE
02778  tolua_lerror:
02779  tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err);
02780  return 0;
02781 #endif
02782 }
02783 #endif //#ifndef TOLUA_DISABLE
02784 
02785 /* Open function */
02786 TOLUA_API int tolua_interfaces_JoystickInterface_open (lua_State* tolua_S)
02787 {
02788  tolua_open(tolua_S);
02789  tolua_reg_types(tolua_S);
02790  tolua_module(tolua_S,NULL,0);
02791  tolua_beginmodule(tolua_S,NULL);
02792   tolua_module(tolua_S,"fawkes",0);
02793   tolua_beginmodule(tolua_S,"fawkes");
02794    tolua_cclass(tolua_S,"JoystickInterface","fawkes::JoystickInterface","Interface",NULL);
02795    tolua_beginmodule(tolua_S,"JoystickInterface");
02796     tolua_variable(tolua_S,"BUTTON_1",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_1,NULL);
02797     tolua_variable(tolua_S,"BUTTON_2",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_2,NULL);
02798     tolua_variable(tolua_S,"BUTTON_3",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_3,NULL);
02799     tolua_variable(tolua_S,"BUTTON_4",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_4,NULL);
02800     tolua_variable(tolua_S,"BUTTON_5",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_5,NULL);
02801     tolua_variable(tolua_S,"BUTTON_6",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_6,NULL);
02802     tolua_variable(tolua_S,"BUTTON_7",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_7,NULL);
02803     tolua_variable(tolua_S,"BUTTON_8",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_8,NULL);
02804     tolua_variable(tolua_S,"BUTTON_9",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_9,NULL);
02805     tolua_variable(tolua_S,"BUTTON_10",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_10,NULL);
02806     tolua_variable(tolua_S,"BUTTON_11",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_11,NULL);
02807     tolua_variable(tolua_S,"BUTTON_12",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_12,NULL);
02808     tolua_variable(tolua_S,"BUTTON_13",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_13,NULL);
02809     tolua_variable(tolua_S,"BUTTON_14",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_14,NULL);
02810     tolua_variable(tolua_S,"BUTTON_15",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_15,NULL);
02811     tolua_variable(tolua_S,"BUTTON_16",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_16,NULL);
02812     tolua_variable(tolua_S,"BUTTON_17",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_17,NULL);
02813     tolua_variable(tolua_S,"BUTTON_18",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_18,NULL);
02814     tolua_variable(tolua_S,"BUTTON_19",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_19,NULL);
02815     tolua_variable(tolua_S,"BUTTON_20",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_20,NULL);
02816     tolua_variable(tolua_S,"BUTTON_21",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_21,NULL);
02817     tolua_variable(tolua_S,"BUTTON_22",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_22,NULL);
02818     tolua_variable(tolua_S,"BUTTON_23",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_23,NULL);
02819     tolua_variable(tolua_S,"BUTTON_24",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_24,NULL);
02820     tolua_variable(tolua_S,"BUTTON_25",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_25,NULL);
02821     tolua_variable(tolua_S,"BUTTON_26",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_26,NULL);
02822     tolua_variable(tolua_S,"BUTTON_27",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_27,NULL);
02823     tolua_variable(tolua_S,"BUTTON_28",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_28,NULL);
02824     tolua_variable(tolua_S,"BUTTON_29",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_29,NULL);
02825     tolua_variable(tolua_S,"BUTTON_30",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_30,NULL);
02826     tolua_variable(tolua_S,"BUTTON_31",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_31,NULL);
02827     tolua_variable(tolua_S,"BUTTON_32",tolua_get_fawkes__JoystickInterface_unsigned_BUTTON_32,NULL);
02828     tolua_variable(tolua_S,"JFF_RUMBLE",tolua_get_fawkes__JoystickInterface_unsigned_JFF_RUMBLE,NULL);
02829     tolua_variable(tolua_S,"JFF_PERIODIC",tolua_get_fawkes__JoystickInterface_unsigned_JFF_PERIODIC,NULL);
02830     tolua_variable(tolua_S,"JFF_RAMP",tolua_get_fawkes__JoystickInterface_unsigned_JFF_RAMP,NULL);
02831     tolua_variable(tolua_S,"JFF_SPRING",tolua_get_fawkes__JoystickInterface_unsigned_JFF_SPRING,NULL);
02832     tolua_variable(tolua_S,"JFF_FRICTION",tolua_get_fawkes__JoystickInterface_unsigned_JFF_FRICTION,NULL);
02833     tolua_variable(tolua_S,"JFF_DAMPER",tolua_get_fawkes__JoystickInterface_unsigned_JFF_DAMPER,NULL);
02834     tolua_variable(tolua_S,"JFF_INERTIA",tolua_get_fawkes__JoystickInterface_unsigned_JFF_INERTIA,NULL);
02835     tolua_variable(tolua_S,"JFF_CONSTANT",tolua_get_fawkes__JoystickInterface_unsigned_JFF_CONSTANT,NULL);
02836     tolua_constant(tolua_S,"DIRECTION_DOWN",fawkes::JoystickInterface::DIRECTION_DOWN);
02837     tolua_constant(tolua_S,"DIRECTION_LEFT",fawkes::JoystickInterface::DIRECTION_LEFT);
02838     tolua_constant(tolua_S,"DIRECTION_UP",fawkes::JoystickInterface::DIRECTION_UP);
02839     tolua_constant(tolua_S,"DIRECTION_RIGHT",fawkes::JoystickInterface::DIRECTION_RIGHT);
02840     #ifdef __cplusplus
02841     tolua_cclass(tolua_S,"StartRumbleMessage","fawkes::JoystickInterface::StartRumbleMessage","Message",tolua_collect_fawkes__JoystickInterface__StartRumbleMessage);
02842     #else
02843     tolua_cclass(tolua_S,"StartRumbleMessage","fawkes::JoystickInterface::StartRumbleMessage","Message",NULL);
02844     #endif
02845     tolua_beginmodule(tolua_S,"StartRumbleMessage");
02846      tolua_function(tolua_S,"new",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00);
02847      tolua_function(tolua_S,"new_local",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00_local);
02848      tolua_function(tolua_S,".call",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new00_local);
02849      tolua_function(tolua_S,"new",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01);
02850      tolua_function(tolua_S,"new_local",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01_local);
02851      tolua_function(tolua_S,".call",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_new01_local);
02852      tolua_function(tolua_S,"delete",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delete00);
02853      tolua_function(tolua_S,"length",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_length00);
02854      tolua_function(tolua_S,"set_length",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_length00);
02855      tolua_function(tolua_S,"maxlenof_length",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_length00);
02856      tolua_function(tolua_S,"delay",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_delay00);
02857      tolua_function(tolua_S,"set_delay",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_delay00);
02858      tolua_function(tolua_S,"maxlenof_delay",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_delay00);
02859      tolua_function(tolua_S,"direction",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_direction00);
02860      tolua_function(tolua_S,"set_direction",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_direction00);
02861      tolua_function(tolua_S,"maxlenof_direction",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_direction00);
02862      tolua_function(tolua_S,"strong_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_strong_magnitude00);
02863      tolua_function(tolua_S,"set_strong_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_strong_magnitude00);
02864      tolua_function(tolua_S,"maxlenof_strong_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_strong_magnitude00);
02865      tolua_function(tolua_S,"weak_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_weak_magnitude00);
02866      tolua_function(tolua_S,"set_weak_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_set_weak_magnitude00);
02867      tolua_function(tolua_S,"maxlenof_weak_magnitude",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StartRumbleMessage_maxlenof_weak_magnitude00);
02868     tolua_endmodule(tolua_S);
02869     #ifdef __cplusplus
02870     tolua_cclass(tolua_S,"StopRumbleMessage","fawkes::JoystickInterface::StopRumbleMessage","Message",tolua_collect_fawkes__JoystickInterface__StopRumbleMessage);
02871     #else
02872     tolua_cclass(tolua_S,"StopRumbleMessage","fawkes::JoystickInterface::StopRumbleMessage","Message",NULL);
02873     #endif
02874     tolua_beginmodule(tolua_S,"StopRumbleMessage");
02875      tolua_function(tolua_S,"new",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00);
02876      tolua_function(tolua_S,"new_local",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00_local);
02877      tolua_function(tolua_S,".call",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_new00_local);
02878      tolua_function(tolua_S,"delete",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopRumbleMessage_delete00);
02879     tolua_endmodule(tolua_S);
02880     #ifdef __cplusplus
02881     tolua_cclass(tolua_S,"StopAllMessage","fawkes::JoystickInterface::StopAllMessage","Message",tolua_collect_fawkes__JoystickInterface__StopAllMessage);
02882     #else
02883     tolua_cclass(tolua_S,"StopAllMessage","fawkes::JoystickInterface::StopAllMessage","Message",NULL);
02884     #endif
02885     tolua_beginmodule(tolua_S,"StopAllMessage");
02886      tolua_function(tolua_S,"new",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00);
02887      tolua_function(tolua_S,"new_local",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00_local);
02888      tolua_function(tolua_S,".call",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_new00_local);
02889      tolua_function(tolua_S,"delete",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_StopAllMessage_delete00);
02890     tolua_endmodule(tolua_S);
02891     tolua_function(tolua_S,"num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_axes00);
02892     tolua_function(tolua_S,"set_num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_axes00);
02893     tolua_function(tolua_S,"maxlenof_num_axes",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_axes00);
02894     tolua_function(tolua_S,"num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_buttons00);
02895     tolua_function(tolua_S,"set_num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_num_buttons00);
02896     tolua_function(tolua_S,"maxlenof_num_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_num_buttons00);
02897     tolua_function(tolua_S,"supported_ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_supported_ff_effects00);
02898     tolua_function(tolua_S,"set_supported_ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_supported_ff_effects00);
02899     tolua_function(tolua_S,"maxlenof_supported_ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_supported_ff_effects00);
02900     tolua_function(tolua_S,"pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_pressed_buttons00);
02901     tolua_function(tolua_S,"set_pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_pressed_buttons00);
02902     tolua_function(tolua_S,"maxlenof_pressed_buttons",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_pressed_buttons00);
02903     tolua_function(tolua_S,"axis",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_axis00);
02904     tolua_function(tolua_S,"set_axis",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_axis00);
02905     tolua_function(tolua_S,"maxlenof_axis",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_axis00);
02906     tolua_function(tolua_S,"ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_ff_effects00);
02907     tolua_function(tolua_S,"set_ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_ff_effects00);
02908     tolua_function(tolua_S,"maxlenof_ff_effects",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_maxlenof_ff_effects00);
02909     tolua_function(tolua_S,"oftype",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_oftype00);
02910     tolua_function(tolua_S,"datachunk",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datachunk00);
02911     tolua_function(tolua_S,"datasize",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_datasize00);
02912     tolua_function(tolua_S,"type",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_type00);
02913     tolua_function(tolua_S,"id",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_id00);
02914     tolua_function(tolua_S,"uid",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_uid00);
02915     tolua_function(tolua_S,"serial",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_serial00);
02916     tolua_function(tolua_S,"mem_serial",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_mem_serial00);
02917     tolua_function(tolua_S,".eq",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface__eq00);
02918     tolua_function(tolua_S,"hash",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash00);
02919     tolua_function(tolua_S,"hash_size",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_size00);
02920     tolua_function(tolua_S,"hash_printable",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_hash_printable00);
02921     tolua_function(tolua_S,"is_writer",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_is_writer00);
02922     tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_set_from_chunk00);
02923     tolua_function(tolua_S,"create_message",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_create_message00);
02924     tolua_function(tolua_S,"read",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_read00);
02925     tolua_function(tolua_S,"write",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_write00);
02926     tolua_function(tolua_S,"has_writer",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_has_writer00);
02927     tolua_function(tolua_S,"num_readers",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_num_readers00);
02928     tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_enqueue_copy00);
02929     tolua_function(tolua_S,"msgq_remove",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove00);
02930     tolua_function(tolua_S,"msgq_remove",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_remove01);
02931     tolua_function(tolua_S,"msgq_size",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_size00);
02932     tolua_function(tolua_S,"msgq_flush",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_flush00);
02933     tolua_function(tolua_S,"msgq_lock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_lock00);
02934     tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_try_lock00);
02935     tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_unlock00);
02936     tolua_function(tolua_S,"msgq_pop",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_pop00);
02937     tolua_function(tolua_S,"msgq_first",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_first00);
02938     tolua_function(tolua_S,"msgq_empty",tolua_interfaces_JoystickInterface_fawkes_JoystickInterface_msgq_empty00);
02939    tolua_endmodule(tolua_S);
02940   tolua_endmodule(tolua_S);
02941  tolua_endmodule(tolua_S);
02942  return 1;
02943 }
02944 
02945 
02946 extern "C" {
02947 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
02948  TOLUA_API int luaopen_interfaces_JoystickInterface (lua_State* tolua_S) {
02949  return tolua_interfaces_JoystickInterface_open(tolua_S);
02950 };
02951 #endif
02952 }
02953 
02954