0.0.1 freeze

This commit is contained in:
James Turk 2005-08-08 19:24:30 +00:00
parent 3f9d3190ff
commit c20ed848c3
2 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
// James Turk (jpt2433@rit.edu) // James Turk (jpt2433@rit.edu)
// //
// Version: // Version:
// $Id: Audio_test.cpp,v 1.10 2005/08/08 06:37:10 cozman Exp $ // $Id: Audio_test.cpp,v 1.11 2005/08/08 19:24:30 cozman Exp $
#include "photon.hpp" #include "photon.hpp"
using namespace photon; using namespace photon;
@ -66,7 +66,7 @@ public:
// executes the checking of the keys, when a key is pressed // executes the checking of the keys, when a key is pressed
// the state is toggled // the state is toggled
void onKeyPress(int key) void onKeyPress(KeyCode key)
{ {
static const std::string NOT_PLAYING = "NOT "; static const std::string NOT_PLAYING = "NOT ";

View File

@ -5,7 +5,7 @@
// James Turk (jpt2433@rit.edu) // James Turk (jpt2433@rit.edu)
// //
// Version: // Version:
// $Id: Input_test.cpp,v 1.7 2005/08/08 06:37:10 cozman Exp $ // $Id: Input_test.cpp,v 1.8 2005/08/08 19:24:31 cozman Exp $
#include "photon.hpp" #include "photon.hpp"
using namespace photon; using namespace photon;
@ -26,25 +26,25 @@ public:
} }
// listen for events and set the last event string // listen for events and set the last event string
void onKeyPress(int key) void onKeyPress(KeyCode key)
{ {
lastEvent = "key " + boost::lexical_cast<std::string>(key) + lastEvent = "key " + boost::lexical_cast<std::string>(key) +
" pressed"; " pressed";
} }
void onKeyRelease(int key) void onKeyRelease(KeyCode key)
{ {
lastEvent = "key " + boost::lexical_cast<std::string>(key) + lastEvent = "key " + boost::lexical_cast<std::string>(key) +
" released"; " released";
} }
void onMouseButtonPress(int button) void onMouseButtonPress(MouseButton button)
{ {
lastEvent = "mouse button " + boost::lexical_cast<std::string>(button) + lastEvent = "mouse button " + boost::lexical_cast<std::string>(button) +
" pressed"; " pressed";
} }
void onMouseButtonRelease(int button) void onMouseButtonRelease(MouseButton button)
{ {
lastEvent = "mouse button " + boost::lexical_cast<std::string>(button) + lastEvent = "mouse button " + boost::lexical_cast<std::string>(button) +
" released"; " released";