コード例 #1
0
ファイル: TextBox.cs プロジェクト: pgonzbecer/GDToolkit
 // Called when the user presses the right arrow
 protected virtual void onKeyRight(KeyboardState keyboard)
 {
     if(pCursorPos< pText.Length)
         cursorPos++;
     if(keyboard.isKeyUp(KKL.SHIFT))
         cursorEnd=	pCursorPos;
 }
コード例 #2
0
ファイル: TextBox.cs プロジェクト: pgonzbecer/GDToolkit
 // Called when the user pressed the left arrow
 protected virtual void onKeyLeft(KeyboardState keyboard)
 {
     if(pCursorPos> 0)
         pCursorPos--;
     if(keyboard.isKeyUp(KKL.SHIFT))
         cursorEnd=	pCursorPos;
 }