Add MathEngineTest and Commects and clean ups

This commit is contained in:
2018-08-18 20:50:06 -04:00
parent bd3c111fa1
commit a815367c9d
52 changed files with 386 additions and 144 deletions
@@ -61,6 +61,7 @@ namespace InputEngine {
const bool IsInit() const;
private:
/// Variables
std::vector<InputEngine::cKeyboard*> m_keyboards;
SDL_Event m_event;
@@ -32,7 +32,6 @@ namespace InputEngine {
/// Used when looking for keys that have been add to the check list
void JoystickCheck();
};/// END CLASS DEFINITION cJoystick
}/// END NAMESPACE DEFINITION InputEngine
#endif/// END IFNDEF _CJOYSTICK_HPP_
@@ -15,7 +15,7 @@ namespace InputEngine {
cKey( const cKey& copy );
virtual ~cKey();
/// Funtions
/// Functions
/* Call to check if the key is pressed */
virtual void KeyPress();
/* Call to check if the key is released */
@@ -31,6 +31,7 @@ namespace InputEngine {
private:
private:
/// Variables
SDL_Keycode m_key;
};/// END CLASS DEFINITION cKey
}/// END NAMESPACE DEFINITION InputEngine
@@ -24,7 +24,6 @@ EXPIMP_TEMPLATE template class EXPORT_FROM_MYDLL std::vector<InputEngine::cKey*,
/*#pragma warning (default : 4231)*/
namespace InputEngine {
/* Singleton */
class EXPORT_FROM_MYDLL cKeyboard
{
public:
@@ -47,6 +46,7 @@ namespace InputEngine {
const cString& getLabel() const;
private:
/// Variables
cString m_label;/// = ""
std::vector<InputEngine::cKey*> m_keys;
@@ -29,8 +29,10 @@ namespace InputEngine {
virtual void KeyboardCheck( const SDL_Event& event );
/* Clears out the Text */
void ClearText();
/// Sets
void setText( const cString& text );
/// Gets
const cString& getText() const;
@@ -38,6 +40,7 @@ namespace InputEngine {
const char UnicodeValue( const SDL_Event& event );
private:
/// Variables
cString m_text;/// = ""
bool m_caps;/// = false
bool m_shift;/// = false