Documentation of SFML 2.1

Warning: this page refers to an old version of SFML. Click here to switch to the latest version.
sf::Event::KeyEvent Struct Reference

Keyboard event parameters (KeyPressed, KeyReleased) More...

#include <Event.hpp>

Public Attributes

Keyboard::Key code
 Code of the key that has been pressed.
 
bool alt
 Is the Alt key pressed?
 
bool control
 Is the Control key pressed?
 
bool shift
 Is the Shift key pressed?
 
bool system
 Is the System key pressed?
 

Detailed Description

Keyboard event parameters (KeyPressed, KeyReleased)

Definition at line 61 of file Event.hpp.

Member Data Documentation

bool sf::Event::KeyEvent::alt

Is the Alt key pressed?

Definition at line 64 of file Event.hpp.

Keyboard::Key sf::Event::KeyEvent::code

Code of the key that has been pressed.

Definition at line 63 of file Event.hpp.

bool sf::Event::KeyEvent::control

Is the Control key pressed?

Definition at line 65 of file Event.hpp.

bool sf::Event::KeyEvent::shift

Is the Shift key pressed?

Definition at line 66 of file Event.hpp.

bool sf::Event::KeyEvent::system

Is the System key pressed?

Definition at line 67 of file Event.hpp.


The documentation for this struct was generated from the following file: