constants/eventcodes/gamepad.playstation.js

  1. /**
  2. * @module EVENTCODES/GAMEPADS/PLAYSTATION
  3. */
  4. /**
  5. * The PLAYSTATION gamepad 'CROSS' event code.
  6. * @type {'ClusterRightButtonBottom'}
  7. * @constant
  8. *
  9. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  10. */
  11. const CROSS = 'ClusterRightButtonBottom';
  12. /**
  13. * The PLAYSTATION gamepad 'CIRCLE' event code.
  14. * @type {'ClusterRightButtonRight'}
  15. * @constant
  16. *
  17. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  18. */
  19. const CIRCLE = 'ClusterRightButtonRight';
  20. /**
  21. * The PLAYSTATION gamepad 'SQUARE' event code.
  22. * @type {'ClusterRightButtonLeft'}
  23. * @constant
  24. *
  25. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  26. */
  27. const SQUARE = 'ClusterRightButtonLeft';
  28. /**
  29. * The PLAYSTATION gamepad 'TRIANGLE' event code.
  30. * @type {'ClusterRightButtonTop'}
  31. * @constant
  32. *
  33. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  34. */
  35. const TRIANGLE = 'ClusterRightButtonTop';
  36. /**
  37. * The PLAYSTATION gamepad 'L1' event code.
  38. * @type {'ClusterFrontButtonTopLeft'}
  39. * @constant
  40. *
  41. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  42. */
  43. const L1 = 'ClusterFrontButtonTopLeft';
  44. /**
  45. * The PLAYSTATION gamepad 'R1' event code.
  46. * @type {'ClusterFrontButtonTopRight'}
  47. * @constant
  48. *
  49. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  50. */
  51. const R1 = 'ClusterFrontButtonTopRight';
  52. /**
  53. * The PLAYSTATION gamepad 'L2' event code.
  54. * @type {'ClusterFrontButtonBottomLeft'}
  55. * @constant
  56. *
  57. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  58. */
  59. const L2 = 'ClusterFrontButtonBottomLeft';
  60. /**
  61. * The PLAYSTATION gamepad 'R2' event code.
  62. * @type {'ClusterFrontButtonBottomRight'}
  63. * @constant
  64. *
  65. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  66. */
  67. const R2 = 'ClusterFrontButtonBottomRight';
  68. /**
  69. * The PLAYSTATION gamepad 'SELECT' event code.
  70. * @type {'ClusterCenterButtonLeft'}
  71. * @constant
  72. *
  73. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  74. */
  75. const SELECT = 'ClusterCenterButtonLeft';
  76. /**
  77. * The PLAYSTATION gamepad 'START' event code.
  78. * @type {'ClusterCenterButtonRight'}
  79. * @constant
  80. *
  81. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  82. */
  83. const START = 'ClusterCenterButtonRight';
  84. /**
  85. * The PLAYSTATION gamepad 'L3' event code.
  86. * @type {'StickLeftButton'}
  87. * @constant
  88. *
  89. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  90. */
  91. const L3 = 'StickLeftButton';
  92. /**
  93. * The PLAYSTATION gamepad 'R3' event code.
  94. * @type {'StickRightButton'}
  95. * @constant
  96. *
  97. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  98. */
  99. const R3 = 'StickRightButton';
  100. /**
  101. * The PLAYSTATION gamepad 'UP' event code.
  102. * @type {'ClusterLeftButtonTop'}
  103. * @constant
  104. *
  105. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  106. */
  107. const UP = 'ClusterLeftButtonTop';
  108. /**
  109. * The PLAYSTATION gamepad 'DOWN' event code.
  110. * @type {'ClusterLeftButtonBottom'}
  111. * @constant
  112. *
  113. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  114. */
  115. const DOWN = 'ClusterLeftButtonBottom';
  116. /**
  117. * The PLAYSTATION gamepad 'LEFT' event code.
  118. * @type {'ClusterLeftButtonLeft'}
  119. * @constant
  120. *
  121. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  122. */
  123. const LEFT = 'ClusterLeftButtonLeft';
  124. /**
  125. * The PLAYSTATION gamepad 'RIGHT' event code.
  126. * @type {'ClusterLeftButtonRight'}
  127. * @constant
  128. *
  129. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  130. */
  131. const RIGHT = 'ClusterLeftButtonRight';
  132. /**
  133. * The PLAYSTATION gamepad 'PLAYSTATION' event code.
  134. * @type {'ClusterCenterButtonCenter'}
  135. * @constant
  136. *
  137. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  138. */
  139. const PLAYSTATION = 'ClusterCenterButtonCenter';
  140. /**
  141. * The PLAYSTATION gamepad 'LS_LEFT' event code.
  142. * @type {'StickLeftLeft'}
  143. * @constant
  144. *
  145. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  146. */
  147. const LS_LEFT = 'StickLeftLeft';
  148. /**
  149. * The PLAYSTATION gamepad 'LS_RIGHT' event code.
  150. * @type {'StickLeftRight'}
  151. * @constant
  152. *
  153. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  154. */
  155. const LS_RIGHT = 'StickLeftRight';
  156. /**
  157. * The PLAYSTATION gamepad 'LS_UP' event code.
  158. * @type {'StickLeftUp'}
  159. * @constant
  160. *
  161. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  162. */
  163. const LS_UP = 'StickLeftUp';
  164. /**
  165. * The PLAYSTATION gamepad 'LS_DOWN' event code.
  166. * @type {'StickLeftDown'}
  167. * @constant
  168. *
  169. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  170. */
  171. const LS_DOWN = 'StickLeftDown';
  172. /**
  173. * The PLAYSTATION gamepad 'RS_LEFT' event code.
  174. * @type {'StickRightLeft'}
  175. * @constant
  176. *
  177. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  178. */
  179. const RS_LEFT = 'StickRightLeft';
  180. /**
  181. * The PLAYSTATION gamepad 'RS_RIGHT' event code.
  182. * @type {'StickRightRight'}
  183. * @constant
  184. *
  185. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  186. */
  187. const RS_RIGHT = 'StickRightRight';
  188. /**
  189. * The PLAYSTATION gamepad 'RS_UP' event code.
  190. * @type {'StickRightUp'}
  191. * @constant
  192. *
  193. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  194. */
  195. const RS_UP = 'StickRightUp';
  196. /**
  197. * The PLAYSTATION gamepad 'RS_DOWN' event code.
  198. * @type {'StickRightDown'}
  199. * @constant
  200. *
  201. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  202. */
  203. const RS_DOWN = 'StickRightDown';
  204. /**
  205. * The PLAYSTATION gamepad 'CONNECTED' event code.
  206. * @type {'Connected'}
  207. * @constant
  208. *
  209. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  210. */
  211. const CONNECTED = 'Connected';
  212. /**
  213. * The PLAYSTATION gamepad 'DISCONNECTED' event code.
  214. * @type {'Disconnected'}
  215. * @constant
  216. *
  217. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  218. */
  219. const DISCONNECTED = 'Disconnected';
  220. /**
  221. * The PLAYSTATION gamepad 'VIBRATE_END' event code.
  222. * @type {'VibrateEnd'}
  223. * @constant
  224. *
  225. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  226. */
  227. const VIBRATE_END = 'VibrateEnd';
  228. /**
  229. * The PLAYSTATION gamepad 'VIBRATE_START' event code.
  230. * @type {'VibrateStart'}
  231. * @constant
  232. *
  233. * @memberof module:EVENTCODES/GAMEPADS/PLAYSTATION
  234. */
  235. const VIBRATE_START = 'VibrateStart';
  236. export {
  237. CROSS,
  238. CIRCLE,
  239. SQUARE,
  240. TRIANGLE,
  241. L1,
  242. R1,
  243. L2,
  244. R2,
  245. SELECT,
  246. START,
  247. L3,
  248. R3,
  249. UP,
  250. DOWN,
  251. LEFT,
  252. RIGHT,
  253. PLAYSTATION,
  254. LS_LEFT,
  255. LS_RIGHT,
  256. LS_UP,
  257. LS_DOWN,
  258. RS_LEFT,
  259. RS_RIGHT,
  260. RS_UP,
  261. RS_DOWN,
  262. CONNECTED,
  263. DISCONNECTED,
  264. VIBRATE_END,
  265. VIBRATE_START
  266. };