##

KeyEvent.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _GAZEBO_KEYEVENT_HH_
#define _GAZEBO_KEYEVENT_HH_
#include <string>
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace common
{
class GZ_COMMON_VISIBLE KeyEvent
{
public: KeyEvent();
public: enum EventType {NO_EVENT, PRESS, RELEASE};
public: EventType type;
public: int key;
public: std::string text;
public: bool control;
public: bool shift;
public: bool alt;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::common::KeyEvent::text
std::string text
Formatted string of the key pressed (could be uppercase).
Definition: KeyEvent.hh:47
common
common
Definition: FuelModelDatabase.hh:37
gazebo::common::KeyEvent::KeyEvent
KeyEvent()
Constructor.
system.hh
gazebo::common::KeyEvent::PRESS
Definition: KeyEvent.hh:38
gazebo::common::KeyEvent::EventType
EventType
Key event types enumeration.
Definition: KeyEvent.hh:38
gazebo::common::KeyEvent::alt
bool alt
Was alt held during this key event?
Definition: KeyEvent.hh:56
gazebo::common::KeyEvent::key
int key
The raw value of the key pressed.
Definition: KeyEvent.hh:44
gazebo::common::KeyEvent::type
EventType type
Event type.
Definition: KeyEvent.hh:41
gazebo::common::KeyEvent
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
gazebo::common::KeyEvent::control
bool control
Was control held during this key event?
Definition: KeyEvent.hh:50
gazebo::common::KeyEvent::NO_EVENT
Definition: KeyEvent.hh:38
gazebo::common::KeyEvent::RELEASE
Definition: KeyEvent.hh:38
gazebo::common::KeyEvent::shift
bool shift
Was shift held during this key event?
Definition: KeyEvent.hh:53