Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/putil/keyboardButton.h

Go to the documentation of this file.
00001 // Filename: keyboardButton.h
00002 // Created by:  drose (01Mar00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef KEYBOARDBUTTON_H
00020 #define KEYBOARDBUTTON_H
00021 
00022 #include <pandabase.h>
00023 
00024 #include "buttonHandle.h"
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : KeyboardButton
00028 // Description : This class is just used as a convenient namespace for
00029 //               grouping all of these handy functions that return
00030 //               buttons which map to standard keyboard keys.
00031 ////////////////////////////////////////////////////////////////////
00032 class EXPCL_PANDA KeyboardButton {
00033 PUBLISHED:
00034   static ButtonHandle ascii_key(char ascii_equivalent);
00035   static ButtonHandle ascii_key(const string &ascii_equivalent);
00036 
00037   static ButtonHandle space();
00038   static ButtonHandle backspace();
00039   static ButtonHandle tab();
00040   static ButtonHandle enter();
00041   static ButtonHandle escape();
00042 
00043   static ButtonHandle f1();
00044   static ButtonHandle f2();
00045   static ButtonHandle f3();
00046   static ButtonHandle f4();
00047   static ButtonHandle f5();
00048   static ButtonHandle f6();
00049   static ButtonHandle f7();
00050   static ButtonHandle f8();
00051   static ButtonHandle f9();
00052   static ButtonHandle f10();
00053   static ButtonHandle f11();
00054   static ButtonHandle f12();
00055 
00056   static ButtonHandle left();
00057   static ButtonHandle right();
00058   static ButtonHandle up();
00059   static ButtonHandle down();
00060   static ButtonHandle page_up();
00061   static ButtonHandle page_down();
00062   static ButtonHandle home();
00063   static ButtonHandle end();
00064   static ButtonHandle insert();
00065   static ButtonHandle del();  // delete is a C++ keyword.
00066 
00067   static ButtonHandle shift();
00068   static ButtonHandle control();
00069   static ButtonHandle alt();
00070   static ButtonHandle meta();
00071   static ButtonHandle caps_lock();
00072   static ButtonHandle shift_lock();
00073   static ButtonHandle num_lock();
00074   static ButtonHandle scroll_lock();
00075   static ButtonHandle print_screen();
00076 
00077 public:
00078   static void init_keyboard_buttons();
00079 };
00080 
00081 #endif

Generated on Fri May 2 00:43:40 2003 for Panda by doxygen1.3