_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Attributes | List of all members
EventCallback Struct Reference

#include <video.h>

Public Attributes

void(* ButtonPressed )(unsigned buttons)
 Callback for mouse button press. More...
 
void(* ButtonReleased )(unsigned buttons)
 Callback for mouse button release. More...
 
void(* MouseMoved )(const PixelPos &screenPos)
 Callback for mouse move. More...
 
void(* MouseExit )()
 Callback for mouse exit of game window. More...
 
void(* KeyPressed )(unsigned keycode, unsigned keychar)
 Callback for key press. More...
 
void(* KeyReleased )(unsigned keycode, unsigned keychar)
 Callback for key release. More...
 
void(* KeyRepeated )(unsigned keycode, unsigned keychar)
 Callback for key repeated. More...
 
void(* NetworkEvent )()
 Callback for network event. More...
 

Detailed Description

Event call back.

This is placed in the video part, because it depends on the video hardware driver.

Member Data Documentation

void(* EventCallback::ButtonPressed)(unsigned buttons)

Callback for mouse button press.

void(* EventCallback::ButtonReleased)(unsigned buttons)

Callback for mouse button release.

void(* EventCallback::KeyPressed)(unsigned keycode, unsigned keychar)

Callback for key press.

void(* EventCallback::KeyReleased)(unsigned keycode, unsigned keychar)

Callback for key release.

void(* EventCallback::KeyRepeated)(unsigned keycode, unsigned keychar)

Callback for key repeated.

void(* EventCallback::MouseExit)()

Callback for mouse exit of game window.

void(* EventCallback::MouseMoved)(const PixelPos &screenPos)

Callback for mouse move.

void(* EventCallback::NetworkEvent)()

Callback for network event.


The documentation for this struct was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.