The Battle for Wesnoth  1.17.4+dev
Namespaces | Functions
input.hpp File Reference

Contains functions for cleanly handling SDL input. More...

#include <cstdint>
Include dependency graph for input.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




uint32_t sdl::get_mouse_state (int *x, int *y)
 A wrapper for SDL_GetMouseState that gives coordinates in draw space. More...
uint32_t sdl::get_mouse_button_mask ()
 Returns the current mouse button mask. More...
SDL_Point sdl::get_mouse_location ()
 Returns the currnet mouse location in draw space. More...
void sdl::update_input_dimensions (int draw_width, int draw_height, int input_width, int input_height)
 Update the cached drawing area and input area sizes. More...
void sdl::update_input_dimensions (SDL_Point draw_size, SDL_Point input_size)

Detailed Description

Contains functions for cleanly handling SDL input.

Definition in file input.hpp.