-
Notifications
You must be signed in to change notification settings - Fork 0
/
gba.ts
71 lines (70 loc) · 1.44 KB
/
gba.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { IMG_GBA_BUTTON } from '@src/constants/gba-img';
import { key } from '@src/constants/keys';
import { Config } from '@src/interfaces';
export const config: Config = {
version: 1,
name: 'Game Boy Advance',
images: [IMG_GBA_BUTTON.BASE],
widgets: [
{
type: 'button',
name: 'Up',
input: key('ArrowUp'),
images: IMG_GBA_BUTTON.UP,
},
{
type: 'button',
name: 'Down',
input: key('ArrowDown'),
images: IMG_GBA_BUTTON.DOWN,
},
{
type: 'button',
name: 'Left',
input: key('ArrowLeft'),
images: IMG_GBA_BUTTON.LEFT,
},
{
type: 'button',
name: 'Right',
input: key('ArrowRight'),
images: IMG_GBA_BUTTON.RIGHT,
},
{
type: 'button',
name: 'A Button',
input: key('KeyX'),
images: IMG_GBA_BUTTON.A,
},
{
type: 'button',
name: 'B Button',
input: key('KeyZ'),
images: IMG_GBA_BUTTON.B,
},
{
type: 'button',
name: 'L Button',
input: key('KeyA'),
images: IMG_GBA_BUTTON.L,
},
{
type: 'button',
name: 'R Button',
input: key('KeyS'),
images: IMG_GBA_BUTTON.R,
},
{
type: 'button',
name: 'Select Button',
input: key('Backspace'),
images: IMG_GBA_BUTTON.SELECT,
},
{
type: 'button',
name: 'Start Button',
input: key('Space'),
images: IMG_GBA_BUTTON.START,
},
],
};