stellaris_gamepad.c (1376d1c13a44e5c41b214a678484739d221457af) stellaris_gamepad.c (af0f07dfc7ce56a944c38d872b7d4502178e6948)
1/*
2 * Gamepad style buttons connected to IRQ/GPIO lines
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

--- 21 unchanged lines hidden (view full) ---

30 }
31 }
32}
33
34static const VMStateDescription vmstate_stellaris_gamepad = {
35 .name = "stellaris_gamepad",
36 .version_id = 4,
37 .minimum_version_id = 4,
1/*
2 * Gamepad style buttons connected to IRQ/GPIO lines
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

--- 21 unchanged lines hidden (view full) ---

30 }
31 }
32}
33
34static const VMStateDescription vmstate_stellaris_gamepad = {
35 .name = "stellaris_gamepad",
36 .version_id = 4,
37 .minimum_version_id = 4,
38 .fields = (VMStateField[]) {
38 .fields = (const VMStateField[]) {
39 VMSTATE_VARRAY_UINT32(pressed, StellarisGamepad, num_buttons,
40 0, vmstate_info_uint8, uint8_t),
41 VMSTATE_END_OF_LIST()
42 }
43};
44
45static const QemuInputHandler stellaris_gamepad_handler = {
46 .name = "Stellaris Gamepad",

--- 61 unchanged lines hidden ---
39 VMSTATE_VARRAY_UINT32(pressed, StellarisGamepad, num_buttons,
40 0, vmstate_info_uint8, uint8_t),
41 VMSTATE_END_OF_LIST()
42 }
43};
44
45static const QemuInputHandler stellaris_gamepad_handler = {
46 .name = "Stellaris Gamepad",

--- 61 unchanged lines hidden ---