What I need is some form of keyboard reading system to output text to a window in my ogre3d game. (I use OIS, and I will make my own text sprites and such, meaning I do not need the GUI portion of CEGUI) I heard that CEGUI can do that, but it really seems to give me way more than I ask for. (All I want is to pull the keyboard info, and I can do everything else...) If there is a better or easier way to do that, then please either point me in the right direction or show me another place I can go to attempt this (Before I mess up my game too much with CEGUI)
Onward with the errors. I have a ton of them just from adding CEGUI in and attempting to compile. If necessary I can provide more info on request.
Code: Select all
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|77|error: '::memchr' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|78|error: '::memcmp' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|79|error: '::memcpy' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|80|error: '::memmove' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|81|error: '::memset' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|82|error: '::strcat' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|83|error: '::strcmp' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|84|error: '::strcoll' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|85|error: '::strcpy' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|86|error: '::strcspn' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|87|error: '::strerror' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|88|error: '::strlen' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|89|error: '::strncat' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|90|error: '::strncmp' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|91|error: '::strncpy' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|92|error: '::strspn' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|93|error: '::strtok' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|94|error: '::strxfrm' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|95|error: '::strchr' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|96|error: '::strpbrk' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|97|error: '::strrchr' has not been declared|
z:\cpp programming\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.0\include\c++\cstring|98|error: '::strstr' has not been declared|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'int CEGUI::String::compare(const char*) const':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|968|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'int CEGUI::String::compare(CEGUI::String::size_type, CEGUI::String::size_type, const char*) const':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|997|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::assign(const CEGUI::String&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1294|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::operator=(const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1502|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::assign(const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1520|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'void CEGUI::String::swap(CEGUI::String&)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1583|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::append(const CEGUI::String&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1638|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::operator+=(const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1895|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::append(const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|1913|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, const CEGUI::String&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2008|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2009|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, const string&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2080|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, const utf8*, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2156|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, CEGUI::String::size_type, CEGUI::utf32)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2193|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2291|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::insert(CEGUI::String::size_type, const char*, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2325|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::erase(CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2413|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, const CEGUI::String&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2593|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2595|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, const string&, CEGUI::String::size_type, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2708|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, const utf8*, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2828|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, CEGUI::String::size_type, CEGUI::utf32)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2909|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::iterator, CEGUI::String::iterator, CEGUI::String::const_iterator, CEGUI::String::const_iterator)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2995|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h|2997|error: 'memcpy' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|3026|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::iterator, CEGUI::String::iterator, const char*)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|3053|error: 'strlen' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String& CEGUI::String::replace(CEGUI::String::size_type, CEGUI::String::size_type, const char*, CEGUI::String::size_type)':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|3095|error: 'memmove' was not declared in this scope|
..\CodeBlocks\MinGW\include\CEGUI\string.h||In member function 'CEGUI::String::size_type CEGUI::String::find(const char*, CEGUI::String::size_type) const':|
..\CodeBlocks\MinGW\include\CEGUI\string.h|3541|error: 'strlen' was not declared in this scope|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 22 seconds) ===|
I am using Code::Blocks with MinGW on Windows 7.
Also How would I buffer my inputs into a string? This is what I formulated from the Ogre3D Tutorial: http://www.ogre3d.org/tikiwiki/Basic+Tutorial+7 Along with add my own spice to it in an attempt to get what I need (Which is a string that tells the buffered keys)
Code: Select all
class CustomKeyListener: public OIS::KeyListener{
using namespace OIS;
public:
std::string mString;
CustomKeyListener(){mString="Blank";};
bool keyPressed(const KeyEvent &arg){
CEGUI::GUIContext& context = CEGUI::System::getSingleton().getDefaultGUIContext();
context.injectKeyDown((CEGUI::Key::Scan)arg.key);
context.injectChar((CEGUI::Key::Scan)arg.text);
std::cout<<arg.text<<std::endl;
return true;
}
bool keyReleased(const KeyEvent &arg){
CEGUI::System::getSingleton().getDefaultGUIContext().injectKeyUp((CEGUI::Key::Scan)arg.key);
return true;
}
};