30 lines
597 B
C++
30 lines
597 B
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <gale/key/type.h>
|
|
#include <etk/stdTools.h>
|
|
|
|
|
|
static const char* typeDescriptionString[] = {
|
|
"type_unknow",
|
|
"type_mouse",
|
|
"type_finger",
|
|
"type_stylet"
|
|
};
|
|
|
|
std::ostream& gale::operator <<(std::ostream& _os, const enum gale::key::type _obj) {
|
|
_os << typeDescriptionString[_obj];
|
|
return _os;
|
|
}
|
|
|
|
namespace etk {
|
|
template<> std::string to_string<enum gale::key::type>(const enum gale::key::type& _obj) {
|
|
return typeDescriptionString[_obj];
|
|
}
|
|
}
|