Editor no longer moves the cursor if not needed.
This commit is contained in:
parent
63b622a086
commit
c0fa3a6aae
|
@ -62,9 +62,16 @@ unsigned textmode()
|
|||
|
||||
bool ctrl = false;
|
||||
|
||||
int oldcursorx = -1;
|
||||
int oldcursory = -1;
|
||||
while ( true )
|
||||
{
|
||||
if ( oldcursorx != cursorx || oldcursory != cursory )
|
||||
{
|
||||
cursorto(cursorx, cursory);
|
||||
oldcursorx = cursorx;
|
||||
oldcursory = cursory;
|
||||
}
|
||||
|
||||
unsigned method = System::Keyboard::POLL;
|
||||
uint32_t codepoint = System::Keyboard::ReceiveKeystroke(method);
|
||||
|
|
Loading…
Reference in New Issue