libGizmod/GizmoLinuxInputEvent.cpp

Go to the documentation of this file.
00001 
00012 /*
00013   
00014   Copyright (c) 2007, Tim Burrell
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 */
00028 
00029 #include "GizmoLinuxInputEvent.hpp"
00030 #include "../libH/Debug.hpp"
00031 #include "../libH/Exception.hpp"
00032 
00033 using namespace std;
00034 using namespace H;
00035 using namespace Gizmod;
00036 
00038 // Type Defs
00040 
00042 // Construction
00044 
00048 GizmoLinuxInputEvent::GizmoLinuxInputEvent() {
00049 }
00050 
00054 GizmoLinuxInputEvent::GizmoLinuxInputEvent(struct input_event const & InputEvent) {
00055         TimeStamp.Seconds = InputEvent.time.tv_sec;
00056         TimeStamp.MicroSeconds = InputEvent.time.tv_usec;
00057         RawType = InputEvent.type;
00058         RawCode = InputEvent.code;
00059         Value = InputEvent.value;
00060         Code = (GizmoKey) InputEvent.code;
00061         Type = (GizmoEventType) InputEvent.type;
00062 }
00063 
00067 GizmoLinuxInputEvent::~GizmoLinuxInputEvent() {
00068 }
00069 
00071 // Class Body

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3