Browse Source

Doc++

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
10de569755
  1. 5
      doc/portability.dox
  2. 6
      src/Platform/Sdl2Application.h

5
doc/portability.dox

@ -136,7 +136,8 @@ macro is also aliased to MAGNUM_APPLICATION_MAIN() to save you typing.
Example application, which targets both embedded Linux (using plain X and EGL)
and desktop (using SDL2 toolkit). Thanks to static polymorphism most of the
functions will work on both without changes:
functions will work on both without changes, the main difference will be in
particular *Event class implementations:
@code
#ifndef MAGNUM_TARGET_GLES
#include <Platform/Sdl2Application.h>
@ -165,7 +166,7 @@ class MyApplication: public ApplicationBase {
// ...
}
void keyPressEvent(Key key, Modifiers modifiers, const Vector2i& position) {
void keyPressEvent(KeyEvent& event) override {
// ...
}
};

6
src/Platform/Sdl2Application.h

@ -170,7 +170,8 @@ class Sdl2Application::InputEvent {
/**
* @brief %Modifier
*
* @see Modifiers, KeyEvent::modifiers()
* @see Modifiers, KeyEvent::modifiers(), MouseEvent::modifiers(),
* MouseMoveEvent::modifiers()
*/
enum class Modifier: Uint16 {
Shift = KMOD_SHIFT, /**< Shift */
@ -185,7 +186,8 @@ class Sdl2Application::InputEvent {
/**
* @brief Set of modifiers
*
* @see KeyEvent::modifiers()
* @see KeyEvent::modifiers(), MouseEvent::modifiers(),
* MouseMoveEvent::modifiers()
*/
typedef Corrade::Containers::EnumSet<Modifier, Uint16> Modifiers;

Loading…
Cancel
Save