Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class keyboard_state

boost::ui::keyboard_state — Keyboard state class.

Synopsis

// In header: <boost/ui/event.hpp>


class keyboard_state {
public:
  // construct/copy/destruct
  keyboard_state();

  // public member functions
  bool ctrl() const;
  bool shift() const;
  bool alt() const;
  bool meta() const;
};

Description

keyboard_state public construct/copy/destruct

  1. keyboard_state();

keyboard_state public member functions

  1. bool ctrl() const;
    Returns true only if Control key is pressed.
  2. bool shift() const;
    Returns true only if Shift key is pressed.
  3. bool alt() const;
    Returns true only if Alt key is pressed.
  4. bool meta() const;
    Returns true only if Meta key is pressed.

PrevUpHomeNext