Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/input/TextEntryNativeInterface.java
/**
	 * @author Ian Copland
	 *
	 * @param The keyboard type as an CS integer 
	 *
	 * @return The input type flag required by Android.
	 */
@author Ian Copland
@param The keyboard type as an CS integer

@return The input type flag required by Android.
@author Ian Copland @param The keyboard type as an CS integer @return The input type flag required by Android .
private int integerToKeyboardType(int in_type)
	{
		switch (in_type)
		{
			case 0:
				return InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
			case 1:
				return InputType.TYPE_CLASS_NUMBER;
			default:
				Logging.logError("Invalid keyboard type integer, cannot be converted.");
				return InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
		}
	}
private int integerToKeyboardType ( int in_type ) { switch ( in_type ) { case 0 : return InputType . TYPE_CLASS_TEXT | InputType . TYPE_TEXT_VARIATION_NORMAL | InputType . TYPE_TEXT_FLAG_NO_SUGGESTIONS ; case 1 : return InputType . TYPE_CLASS_NUMBER ; default : Logging . logError ( "Invalid keyboard type integer, cannot be converted." ) ; return InputType . TYPE_CLASS_TEXT | InputType . TYPE_TEXT_VARIATION_NORMAL | InputType . TYPE_TEXT_FLAG_NO_SUGGESTIONS ; } }
@author Ian Copland
 @param The keyboard type as an CS integer
@author Ian Copland @param The keyboard type as an CS integer