Browse Source

Added TypeConverter for conversion from char to word - fixes Context::ProcessTextInput(String)

Kezeali 15 năm trước cách đây
mục cha
commit
22aedcca59
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Include/Rocket/Core/TypeConverter.inl

+ 2 - 0
Include/Rocket/Core/TypeConverter.inl

@@ -140,6 +140,8 @@ BASIC_CONVERTER_BOOL(float, bool);
 BASIC_CONVERTER(float, int);
 BASIC_CONVERTER(float, unsigned int);
 
+BASIC_CONVERTER(char, word);
+
 /////////////////////////////////////////////////
 // From string converters
 /////////////////////////////////////////////////