mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-06 16:17:33 +00:00
bac6c22973
* eslint config + packages * updated eslint config * fix the issue eslint adding ;;;; at interfaces * first round with eslint --fix . * removed config for unused export * Revert "first round with eslint --fix ." This reverts commit 77a88e0895f7c3389cb223651b90d918af778fe9. * removed config for camelCase * for real this time, first round of eslint --fix . * halfway to manual eslint fix * eslint done * added "how to setup" the hook to eslint --fix each new file before commit (if wanted) * removed eslintrc config file duplicat * fix human error + ignore build folder + merge overrides * added curly brace style + eslint * applied double quote linter rule * added lefthook * test precommit * test precommit * test precommit * test precommit * test precommit * test precommit * test precommit * github action to run eslint * added node_modules to ignore eslint * different action for typescript * no need for different glob (default src) * node 20 * node 20 * removed no longer needed install file * remove hooks part from README * eslint fixes --------- Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
30 lines
406 B
TypeScript
30 lines
406 B
TypeScript
/**
|
|
* Dualshock mapping
|
|
*/
|
|
const pad_dualshock = {
|
|
padID: "Dualshock",
|
|
padType: "Sony",
|
|
gamepadMapping: {
|
|
RC_S: 0,
|
|
RC_E: 1,
|
|
RC_W: 2,
|
|
RC_N: 3,
|
|
START: 9, // Options
|
|
SELECT: 8, // Share
|
|
LB: 4,
|
|
RB: 5,
|
|
LT: 6,
|
|
RT: 7,
|
|
LS: 10,
|
|
RS: 11,
|
|
LC_N: 12,
|
|
LC_S: 13,
|
|
LC_W: 14,
|
|
LC_E: 15,
|
|
MENU: 16,
|
|
TOUCH: 17
|
|
},
|
|
};
|
|
|
|
export default pad_dualshock;
|