源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

805 lines
17 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_InputWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginStaticLibs("Input");
  9. L.RegFunction("GetAxis", GetAxis);
  10. L.RegFunction("GetAxisRaw", GetAxisRaw);
  11. L.RegFunction("GetButton", GetButton);
  12. L.RegFunction("GetButtonDown", GetButtonDown);
  13. L.RegFunction("GetButtonUp", GetButtonUp);
  14. L.RegFunction("GetMouseButton", GetMouseButton);
  15. L.RegFunction("GetMouseButtonDown", GetMouseButtonDown);
  16. L.RegFunction("GetMouseButtonUp", GetMouseButtonUp);
  17. L.RegFunction("ResetInputAxes", ResetInputAxes);
  18. L.RegFunction("GetJoystickNames", GetJoystickNames);
  19. L.RegFunction("GetAccelerationEvent", GetAccelerationEvent);
  20. L.RegFunction("GetKey", GetKey);
  21. L.RegFunction("GetKeyUp", GetKeyUp);
  22. L.RegFunction("GetKeyDown", GetKeyDown);
  23. L.RegFunction("GetTouch", GetTouch);
  24. L.RegVar("simulateMouseWithTouches", get_simulateMouseWithTouches, set_simulateMouseWithTouches);
  25. L.RegVar("anyKey", get_anyKey, null);
  26. L.RegVar("anyKeyDown", get_anyKeyDown, null);
  27. L.RegVar("inputString", get_inputString, null);
  28. L.RegVar("mousePosition", get_mousePosition, null);
  29. L.RegVar("mouseScrollDelta", get_mouseScrollDelta, null);
  30. L.RegVar("imeCompositionMode", get_imeCompositionMode, set_imeCompositionMode);
  31. L.RegVar("compositionString", get_compositionString, null);
  32. L.RegVar("imeIsSelected", get_imeIsSelected, null);
  33. L.RegVar("compositionCursorPos", get_compositionCursorPos, set_compositionCursorPos);
  34. L.RegVar("mousePresent", get_mousePresent, null);
  35. L.RegVar("touchCount", get_touchCount, null);
  36. L.RegVar("touchPressureSupported", get_touchPressureSupported, null);
  37. L.RegVar("stylusTouchSupported", get_stylusTouchSupported, null);
  38. L.RegVar("touchSupported", get_touchSupported, null);
  39. L.RegVar("multiTouchEnabled", get_multiTouchEnabled, set_multiTouchEnabled);
  40. L.RegVar("deviceOrientation", get_deviceOrientation, null);
  41. L.RegVar("acceleration", get_acceleration, null);
  42. L.RegVar("compensateSensors", get_compensateSensors, set_compensateSensors);
  43. L.RegVar("accelerationEventCount", get_accelerationEventCount, null);
  44. L.RegVar("backButtonLeavesApp", get_backButtonLeavesApp, set_backButtonLeavesApp);
  45. L.RegVar("location", get_location, null);
  46. L.RegVar("compass", get_compass, null);
  47. L.RegVar("gyro", get_gyro, null);
  48. L.RegVar("touches", get_touches, null);
  49. L.RegVar("accelerationEvents", get_accelerationEvents, null);
  50. L.EndStaticLibs();
  51. }
  52. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  53. static int GetAxis(IntPtr L)
  54. {
  55. try
  56. {
  57. ToLua.CheckArgsCount(L, 1);
  58. string arg0 = ToLua.CheckString(L, 1);
  59. float o = UnityEngine.Input.GetAxis(arg0);
  60. LuaDLL.lua_pushnumber(L, o);
  61. return 1;
  62. }
  63. catch(Exception e)
  64. {
  65. return LuaDLL.toluaL_exception(L, e);
  66. }
  67. }
  68. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  69. static int GetAxisRaw(IntPtr L)
  70. {
  71. try
  72. {
  73. ToLua.CheckArgsCount(L, 1);
  74. string arg0 = ToLua.CheckString(L, 1);
  75. float o = UnityEngine.Input.GetAxisRaw(arg0);
  76. LuaDLL.lua_pushnumber(L, o);
  77. return 1;
  78. }
  79. catch(Exception e)
  80. {
  81. return LuaDLL.toluaL_exception(L, e);
  82. }
  83. }
  84. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  85. static int GetButton(IntPtr L)
  86. {
  87. try
  88. {
  89. ToLua.CheckArgsCount(L, 1);
  90. string arg0 = ToLua.CheckString(L, 1);
  91. bool o = UnityEngine.Input.GetButton(arg0);
  92. LuaDLL.lua_pushboolean(L, o);
  93. return 1;
  94. }
  95. catch(Exception e)
  96. {
  97. return LuaDLL.toluaL_exception(L, e);
  98. }
  99. }
  100. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  101. static int GetButtonDown(IntPtr L)
  102. {
  103. try
  104. {
  105. ToLua.CheckArgsCount(L, 1);
  106. string arg0 = ToLua.CheckString(L, 1);
  107. bool o = UnityEngine.Input.GetButtonDown(arg0);
  108. LuaDLL.lua_pushboolean(L, o);
  109. return 1;
  110. }
  111. catch(Exception e)
  112. {
  113. return LuaDLL.toluaL_exception(L, e);
  114. }
  115. }
  116. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  117. static int GetButtonUp(IntPtr L)
  118. {
  119. try
  120. {
  121. ToLua.CheckArgsCount(L, 1);
  122. string arg0 = ToLua.CheckString(L, 1);
  123. bool o = UnityEngine.Input.GetButtonUp(arg0);
  124. LuaDLL.lua_pushboolean(L, o);
  125. return 1;
  126. }
  127. catch(Exception e)
  128. {
  129. return LuaDLL.toluaL_exception(L, e);
  130. }
  131. }
  132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  133. static int GetMouseButton(IntPtr L)
  134. {
  135. try
  136. {
  137. ToLua.CheckArgsCount(L, 1);
  138. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  139. bool o = UnityEngine.Input.GetMouseButton(arg0);
  140. LuaDLL.lua_pushboolean(L, o);
  141. return 1;
  142. }
  143. catch(Exception e)
  144. {
  145. return LuaDLL.toluaL_exception(L, e);
  146. }
  147. }
  148. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  149. static int GetMouseButtonDown(IntPtr L)
  150. {
  151. try
  152. {
  153. ToLua.CheckArgsCount(L, 1);
  154. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  155. bool o = UnityEngine.Input.GetMouseButtonDown(arg0);
  156. LuaDLL.lua_pushboolean(L, o);
  157. return 1;
  158. }
  159. catch(Exception e)
  160. {
  161. return LuaDLL.toluaL_exception(L, e);
  162. }
  163. }
  164. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  165. static int GetMouseButtonUp(IntPtr L)
  166. {
  167. try
  168. {
  169. ToLua.CheckArgsCount(L, 1);
  170. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  171. bool o = UnityEngine.Input.GetMouseButtonUp(arg0);
  172. LuaDLL.lua_pushboolean(L, o);
  173. return 1;
  174. }
  175. catch(Exception e)
  176. {
  177. return LuaDLL.toluaL_exception(L, e);
  178. }
  179. }
  180. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  181. static int ResetInputAxes(IntPtr L)
  182. {
  183. try
  184. {
  185. ToLua.CheckArgsCount(L, 0);
  186. UnityEngine.Input.ResetInputAxes();
  187. return 0;
  188. }
  189. catch(Exception e)
  190. {
  191. return LuaDLL.toluaL_exception(L, e);
  192. }
  193. }
  194. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  195. static int GetJoystickNames(IntPtr L)
  196. {
  197. try
  198. {
  199. ToLua.CheckArgsCount(L, 0);
  200. string[] o = UnityEngine.Input.GetJoystickNames();
  201. ToLua.Push(L, o);
  202. return 1;
  203. }
  204. catch(Exception e)
  205. {
  206. return LuaDLL.toluaL_exception(L, e);
  207. }
  208. }
  209. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  210. static int GetAccelerationEvent(IntPtr L)
  211. {
  212. try
  213. {
  214. ToLua.CheckArgsCount(L, 1);
  215. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  216. UnityEngine.AccelerationEvent o = UnityEngine.Input.GetAccelerationEvent(arg0);
  217. ToLua.PushValue(L, o);
  218. return 1;
  219. }
  220. catch(Exception e)
  221. {
  222. return LuaDLL.toluaL_exception(L, e);
  223. }
  224. }
  225. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  226. static int GetKey(IntPtr L)
  227. {
  228. try
  229. {
  230. int count = LuaDLL.lua_gettop(L);
  231. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.KeyCode)))
  232. {
  233. UnityEngine.KeyCode arg0 = (UnityEngine.KeyCode)ToLua.ToObject(L, 1);
  234. bool o = UnityEngine.Input.GetKey(arg0);
  235. LuaDLL.lua_pushboolean(L, o);
  236. return 1;
  237. }
  238. else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string)))
  239. {
  240. string arg0 = ToLua.ToString(L, 1);
  241. bool o = UnityEngine.Input.GetKey(arg0);
  242. LuaDLL.lua_pushboolean(L, o);
  243. return 1;
  244. }
  245. else
  246. {
  247. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Input.GetKey");
  248. }
  249. }
  250. catch(Exception e)
  251. {
  252. return LuaDLL.toluaL_exception(L, e);
  253. }
  254. }
  255. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  256. static int GetKeyUp(IntPtr L)
  257. {
  258. try
  259. {
  260. int count = LuaDLL.lua_gettop(L);
  261. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.KeyCode)))
  262. {
  263. UnityEngine.KeyCode arg0 = (UnityEngine.KeyCode)ToLua.ToObject(L, 1);
  264. bool o = UnityEngine.Input.GetKeyUp(arg0);
  265. LuaDLL.lua_pushboolean(L, o);
  266. return 1;
  267. }
  268. else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string)))
  269. {
  270. string arg0 = ToLua.ToString(L, 1);
  271. bool o = UnityEngine.Input.GetKeyUp(arg0);
  272. LuaDLL.lua_pushboolean(L, o);
  273. return 1;
  274. }
  275. else
  276. {
  277. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Input.GetKeyUp");
  278. }
  279. }
  280. catch(Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e);
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int GetKeyDown(IntPtr L)
  287. {
  288. try
  289. {
  290. int count = LuaDLL.lua_gettop(L);
  291. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.KeyCode)))
  292. {
  293. UnityEngine.KeyCode arg0 = (UnityEngine.KeyCode)ToLua.ToObject(L, 1);
  294. bool o = UnityEngine.Input.GetKeyDown(arg0);
  295. LuaDLL.lua_pushboolean(L, o);
  296. return 1;
  297. }
  298. else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string)))
  299. {
  300. string arg0 = ToLua.ToString(L, 1);
  301. bool o = UnityEngine.Input.GetKeyDown(arg0);
  302. LuaDLL.lua_pushboolean(L, o);
  303. return 1;
  304. }
  305. else
  306. {
  307. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Input.GetKeyDown");
  308. }
  309. }
  310. catch(Exception e)
  311. {
  312. return LuaDLL.toluaL_exception(L, e);
  313. }
  314. }
  315. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  316. static int GetTouch(IntPtr L)
  317. {
  318. try
  319. {
  320. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  321. int arg1 = LuaDLL.luaL_optinteger(L, 2, TouchBits.ALL);
  322. UnityEngine.Touch o = UnityEngine.Input.GetTouch(arg0);
  323. ToLua.Push(L, o, arg1);
  324. return 1;
  325. }
  326. catch(Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e);
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int get_simulateMouseWithTouches(IntPtr L)
  333. {
  334. try
  335. {
  336. LuaDLL.lua_pushboolean(L, UnityEngine.Input.simulateMouseWithTouches);
  337. return 1;
  338. }
  339. catch(Exception e)
  340. {
  341. return LuaDLL.toluaL_exception(L, e);
  342. }
  343. }
  344. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  345. static int get_anyKey(IntPtr L)
  346. {
  347. try
  348. {
  349. LuaDLL.lua_pushboolean(L, UnityEngine.Input.anyKey);
  350. return 1;
  351. }
  352. catch(Exception e)
  353. {
  354. return LuaDLL.toluaL_exception(L, e);
  355. }
  356. }
  357. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  358. static int get_anyKeyDown(IntPtr L)
  359. {
  360. try
  361. {
  362. LuaDLL.lua_pushboolean(L, UnityEngine.Input.anyKeyDown);
  363. return 1;
  364. }
  365. catch(Exception e)
  366. {
  367. return LuaDLL.toluaL_exception(L, e);
  368. }
  369. }
  370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  371. static int get_inputString(IntPtr L)
  372. {
  373. try
  374. {
  375. LuaDLL.lua_pushstring(L, UnityEngine.Input.inputString);
  376. return 1;
  377. }
  378. catch(Exception e)
  379. {
  380. return LuaDLL.toluaL_exception(L, e);
  381. }
  382. }
  383. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  384. static int get_mousePosition(IntPtr L)
  385. {
  386. try
  387. {
  388. ToLua.Push(L, UnityEngine.Input.mousePosition);
  389. return 1;
  390. }
  391. catch(Exception e)
  392. {
  393. return LuaDLL.toluaL_exception(L, e);
  394. }
  395. }
  396. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  397. static int get_mouseScrollDelta(IntPtr L)
  398. {
  399. try
  400. {
  401. ToLua.Push(L, UnityEngine.Input.mouseScrollDelta);
  402. return 1;
  403. }
  404. catch(Exception e)
  405. {
  406. return LuaDLL.toluaL_exception(L, e);
  407. }
  408. }
  409. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  410. static int get_imeCompositionMode(IntPtr L)
  411. {
  412. try
  413. {
  414. ToLua.Push(L, UnityEngine.Input.imeCompositionMode);
  415. return 1;
  416. }
  417. catch(Exception e)
  418. {
  419. return LuaDLL.toluaL_exception(L, e);
  420. }
  421. }
  422. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  423. static int get_compositionString(IntPtr L)
  424. {
  425. try
  426. {
  427. LuaDLL.lua_pushstring(L, UnityEngine.Input.compositionString);
  428. return 1;
  429. }
  430. catch(Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e);
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int get_imeIsSelected(IntPtr L)
  437. {
  438. try
  439. {
  440. LuaDLL.lua_pushboolean(L, UnityEngine.Input.imeIsSelected);
  441. return 1;
  442. }
  443. catch(Exception e)
  444. {
  445. return LuaDLL.toluaL_exception(L, e);
  446. }
  447. }
  448. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  449. static int get_compositionCursorPos(IntPtr L)
  450. {
  451. try
  452. {
  453. ToLua.Push(L, UnityEngine.Input.compositionCursorPos);
  454. return 1;
  455. }
  456. catch(Exception e)
  457. {
  458. return LuaDLL.toluaL_exception(L, e);
  459. }
  460. }
  461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  462. static int get_mousePresent(IntPtr L)
  463. {
  464. try
  465. {
  466. LuaDLL.lua_pushboolean(L, UnityEngine.Input.mousePresent);
  467. return 1;
  468. }
  469. catch(Exception e)
  470. {
  471. return LuaDLL.toluaL_exception(L, e);
  472. }
  473. }
  474. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  475. static int get_touchCount(IntPtr L)
  476. {
  477. try
  478. {
  479. LuaDLL.lua_pushinteger(L, UnityEngine.Input.touchCount);
  480. return 1;
  481. }
  482. catch(Exception e)
  483. {
  484. return LuaDLL.toluaL_exception(L, e);
  485. }
  486. }
  487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  488. static int get_touchPressureSupported(IntPtr L)
  489. {
  490. try
  491. {
  492. LuaDLL.lua_pushboolean(L, UnityEngine.Input.touchPressureSupported);
  493. return 1;
  494. }
  495. catch(Exception e)
  496. {
  497. return LuaDLL.toluaL_exception(L, e);
  498. }
  499. }
  500. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  501. static int get_stylusTouchSupported(IntPtr L)
  502. {
  503. try
  504. {
  505. LuaDLL.lua_pushboolean(L, UnityEngine.Input.stylusTouchSupported);
  506. return 1;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e);
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int get_touchSupported(IntPtr L)
  515. {
  516. try
  517. {
  518. LuaDLL.lua_pushboolean(L, UnityEngine.Input.touchSupported);
  519. return 1;
  520. }
  521. catch(Exception e)
  522. {
  523. return LuaDLL.toluaL_exception(L, e);
  524. }
  525. }
  526. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  527. static int get_multiTouchEnabled(IntPtr L)
  528. {
  529. try
  530. {
  531. LuaDLL.lua_pushboolean(L, UnityEngine.Input.multiTouchEnabled);
  532. return 1;
  533. }
  534. catch(Exception e)
  535. {
  536. return LuaDLL.toluaL_exception(L, e);
  537. }
  538. }
  539. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  540. static int get_deviceOrientation(IntPtr L)
  541. {
  542. try
  543. {
  544. ToLua.Push(L, UnityEngine.Input.deviceOrientation);
  545. return 1;
  546. }
  547. catch(Exception e)
  548. {
  549. return LuaDLL.toluaL_exception(L, e);
  550. }
  551. }
  552. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  553. static int get_acceleration(IntPtr L)
  554. {
  555. try
  556. {
  557. ToLua.Push(L, UnityEngine.Input.acceleration);
  558. return 1;
  559. }
  560. catch(Exception e)
  561. {
  562. return LuaDLL.toluaL_exception(L, e);
  563. }
  564. }
  565. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  566. static int get_compensateSensors(IntPtr L)
  567. {
  568. try
  569. {
  570. LuaDLL.lua_pushboolean(L, UnityEngine.Input.compensateSensors);
  571. return 1;
  572. }
  573. catch(Exception e)
  574. {
  575. return LuaDLL.toluaL_exception(L, e);
  576. }
  577. }
  578. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  579. static int get_accelerationEventCount(IntPtr L)
  580. {
  581. try
  582. {
  583. LuaDLL.lua_pushinteger(L, UnityEngine.Input.accelerationEventCount);
  584. return 1;
  585. }
  586. catch(Exception e)
  587. {
  588. return LuaDLL.toluaL_exception(L, e);
  589. }
  590. }
  591. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  592. static int get_backButtonLeavesApp(IntPtr L)
  593. {
  594. try
  595. {
  596. LuaDLL.lua_pushboolean(L, UnityEngine.Input.backButtonLeavesApp);
  597. return 1;
  598. }
  599. catch(Exception e)
  600. {
  601. return LuaDLL.toluaL_exception(L, e);
  602. }
  603. }
  604. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  605. static int get_location(IntPtr L)
  606. {
  607. try
  608. {
  609. ToLua.PushObject(L, UnityEngine.Input.location);
  610. return 1;
  611. }
  612. catch(Exception e)
  613. {
  614. return LuaDLL.toluaL_exception(L, e);
  615. }
  616. }
  617. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  618. static int get_compass(IntPtr L)
  619. {
  620. try
  621. {
  622. ToLua.PushObject(L, UnityEngine.Input.compass);
  623. return 1;
  624. }
  625. catch(Exception e)
  626. {
  627. return LuaDLL.toluaL_exception(L, e);
  628. }
  629. }
  630. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  631. static int get_gyro(IntPtr L)
  632. {
  633. try
  634. {
  635. ToLua.PushObject(L, UnityEngine.Input.gyro);
  636. return 1;
  637. }
  638. catch(Exception e)
  639. {
  640. return LuaDLL.toluaL_exception(L, e);
  641. }
  642. }
  643. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  644. static int get_touches(IntPtr L)
  645. {
  646. try
  647. {
  648. ToLua.Push(L, UnityEngine.Input.touches);
  649. return 1;
  650. }
  651. catch(Exception e)
  652. {
  653. return LuaDLL.toluaL_exception(L, e);
  654. }
  655. }
  656. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  657. static int get_accelerationEvents(IntPtr L)
  658. {
  659. try
  660. {
  661. ToLua.Push(L, UnityEngine.Input.accelerationEvents);
  662. return 1;
  663. }
  664. catch(Exception e)
  665. {
  666. return LuaDLL.toluaL_exception(L, e);
  667. }
  668. }
  669. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  670. static int set_simulateMouseWithTouches(IntPtr L)
  671. {
  672. try
  673. {
  674. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  675. UnityEngine.Input.simulateMouseWithTouches = arg0;
  676. return 0;
  677. }
  678. catch(Exception e)
  679. {
  680. return LuaDLL.toluaL_exception(L, e);
  681. }
  682. }
  683. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  684. static int set_imeCompositionMode(IntPtr L)
  685. {
  686. try
  687. {
  688. UnityEngine.IMECompositionMode arg0 = (UnityEngine.IMECompositionMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.IMECompositionMode));
  689. UnityEngine.Input.imeCompositionMode = arg0;
  690. return 0;
  691. }
  692. catch(Exception e)
  693. {
  694. return LuaDLL.toluaL_exception(L, e);
  695. }
  696. }
  697. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  698. static int set_compositionCursorPos(IntPtr L)
  699. {
  700. try
  701. {
  702. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
  703. UnityEngine.Input.compositionCursorPos = arg0;
  704. return 0;
  705. }
  706. catch(Exception e)
  707. {
  708. return LuaDLL.toluaL_exception(L, e);
  709. }
  710. }
  711. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  712. static int set_multiTouchEnabled(IntPtr L)
  713. {
  714. try
  715. {
  716. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  717. UnityEngine.Input.multiTouchEnabled = arg0;
  718. return 0;
  719. }
  720. catch(Exception e)
  721. {
  722. return LuaDLL.toluaL_exception(L, e);
  723. }
  724. }
  725. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  726. static int set_compensateSensors(IntPtr L)
  727. {
  728. try
  729. {
  730. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  731. UnityEngine.Input.compensateSensors = arg0;
  732. return 0;
  733. }
  734. catch(Exception e)
  735. {
  736. return LuaDLL.toluaL_exception(L, e);
  737. }
  738. }
  739. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  740. static int set_backButtonLeavesApp(IntPtr L)
  741. {
  742. try
  743. {
  744. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  745. UnityEngine.Input.backButtonLeavesApp = arg0;
  746. return 0;
  747. }
  748. catch(Exception e)
  749. {
  750. return LuaDLL.toluaL_exception(L, e);
  751. }
  752. }
  753. }