InputReport.cpp

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009, 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 #include "InputReport.h"
00012 #include "InputDevice.h"
00013 #include "InputHandler.h"
00014 
00015 namespace Engine
00016 {
00017 
00018 InputReport::InputReport(const InputDevice * const input_device, ReportType type, int value)
00019     :   input_device(input_device->get_handle()),
00020         type(type),
00021         value(value)
00022 {
00023 }
00024 
00025 InputReport::~InputReport()
00026 {
00027 }
00028 
00029 InputReport::ReportType InputReport::get_report_type() const
00030 {
00031     return type;
00032 }
00033 
00034 int InputReport::get_value() const
00035 {
00036     return value;
00037 }
00038 
00039 std::set<InputDevice *>::iterator InputReport::get_input_device() const
00040 {
00041     return input_device;
00042 }
00043 
00044 }

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:12 2010 by Doxygen version 1.4.7 for Racer version svn335.