sdl2.c (afa25c4bb5bd0732dca4aa0691fd4682d242925f) | sdl2.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d) |
---|---|
1/* 2 * QEMU SDL display driver 3 * 4 * Copyright (c) 2003 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 --- 242 unchanged lines hidden (view full) --- 251 } 252 absolute_enabled = 0; 253 } 254} 255 256static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy, 257 int x, int y, int state) 258{ | 1/* 2 * QEMU SDL display driver 3 * 4 * Copyright (c) 2003 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 --- 242 unchanged lines hidden (view full) --- 251 } 252 absolute_enabled = 0; 253 } 254} 255 256static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy, 257 int x, int y, int state) 258{ |
259 static uint32_t bmap[INPUT_BUTTON_MAX] = { | 259 static uint32_t bmap[INPUT_BUTTON__MAX] = { |
260 [INPUT_BUTTON_LEFT] = SDL_BUTTON(SDL_BUTTON_LEFT), 261 [INPUT_BUTTON_MIDDLE] = SDL_BUTTON(SDL_BUTTON_MIDDLE), 262 [INPUT_BUTTON_RIGHT] = SDL_BUTTON(SDL_BUTTON_RIGHT), 263 }; 264 static uint32_t prev_state; 265 266 if (prev_state != state) { 267 qemu_input_update_buttons(scon->dcl.con, bmap, prev_state, state); --- 539 unchanged lines hidden --- | 260 [INPUT_BUTTON_LEFT] = SDL_BUTTON(SDL_BUTTON_LEFT), 261 [INPUT_BUTTON_MIDDLE] = SDL_BUTTON(SDL_BUTTON_MIDDLE), 262 [INPUT_BUTTON_RIGHT] = SDL_BUTTON(SDL_BUTTON_RIGHT), 263 }; 264 static uint32_t prev_state; 265 266 if (prev_state != state) { 267 qemu_input_update_buttons(scon->dcl.con, bmap, prev_state, state); --- 539 unchanged lines hidden --- |