adb-mouse.c (4dad0a9aa818698e0735c8352bf7925a1660df6f) | adb-mouse.c (af0f07dfc7ce56a944c38d872b7d4502178e6948) |
---|---|
1/* 2 * QEMU ADB mouse support 3 * 4 * Copyright (c) 2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 203 unchanged lines hidden (view full) --- 212 s->last_buttons_state = s->buttons_state = 0; 213 s->dx = s->dy = s->dz = 0; 214} 215 216static const VMStateDescription vmstate_adb_mouse = { 217 .name = "adb_mouse", 218 .version_id = 2, 219 .minimum_version_id = 2, | 1/* 2 * QEMU ADB mouse support 3 * 4 * Copyright (c) 2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 203 unchanged lines hidden (view full) --- 212 s->last_buttons_state = s->buttons_state = 0; 213 s->dx = s->dy = s->dz = 0; 214} 215 216static const VMStateDescription vmstate_adb_mouse = { 217 .name = "adb_mouse", 218 .version_id = 2, 219 .minimum_version_id = 2, |
220 .fields = (VMStateField[]) { | 220 .fields = (const VMStateField[]) { |
221 VMSTATE_STRUCT(parent_obj, MouseState, 0, vmstate_adb_device, 222 ADBDevice), 223 VMSTATE_INT32(buttons_state, MouseState), 224 VMSTATE_INT32(last_buttons_state, MouseState), 225 VMSTATE_INT32(dx, MouseState), 226 VMSTATE_INT32(dy, MouseState), 227 VMSTATE_INT32(dz, MouseState), 228 VMSTATE_END_OF_LIST() --- 51 unchanged lines hidden --- | 221 VMSTATE_STRUCT(parent_obj, MouseState, 0, vmstate_adb_device, 222 ADBDevice), 223 VMSTATE_INT32(buttons_state, MouseState), 224 VMSTATE_INT32(last_buttons_state, MouseState), 225 VMSTATE_INT32(dx, MouseState), 226 VMSTATE_INT32(dy, MouseState), 227 VMSTATE_INT32(dz, MouseState), 228 VMSTATE_END_OF_LIST() --- 51 unchanged lines hidden --- |