mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- Fixed: genStringEnter mode acted on key up events rather than key repeat
events. SVN r1773 (trunk)
This commit is contained in:
parent
fe96cab254
commit
7a89872b63
2 changed files with 41 additions and 32 deletions
|
@ -1,4 +1,8 @@
|
||||||
August 12, 2009 (Changes by Graf Zahl)
|
August 28, 2009
|
||||||
|
- Fixed: genStringEnter mode acted on key up events rather than key repeat
|
||||||
|
events.
|
||||||
|
|
||||||
|
August 12, 2009 (Changes by Graf Zahl)
|
||||||
- Fixed: paletted texture composition with part translucent patches
|
- Fixed: paletted texture composition with part translucent patches
|
||||||
did not work.
|
did not work.
|
||||||
- Fixed: A_SorcOffense2 depended on args being bytes and overflowing.
|
- Fixed: A_SorcOffense2 depended on args being bytes and overflowing.
|
||||||
|
@ -29,7 +33,8 @@ August 9, 2009 (Changes by Graf Zahl)
|
||||||
|
|
||||||
August 8, 2009 (Changes by Graf Zahl)
|
August 8, 2009 (Changes by Graf Zahl)
|
||||||
- replaced all code that changed a sector's light level with a setter function.
|
- replaced all code that changed a sector's light level with a setter function.
|
||||||
- Fixed: The FeatureFlags array in the CPUInfo struct was not mapped to the flags properly.
|
- Fixed: The FeatureFlags array in the CPUInfo struct was not mapped to the
|
||||||
|
flags properly.
|
||||||
|
|
||||||
August 8, 2009
|
August 8, 2009
|
||||||
- Changed the return value of SetActivatorToTarget to match the description
|
- Changed the return value of SetActivatorToTarget to match the description
|
||||||
|
|
|
@ -2874,28 +2874,25 @@ bool M_Responder (event_t *ev)
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ev->subtype == EV_GUI_KeyDown || ev->subtype == EV_GUI_KeyUp)
|
|
||||||
{
|
|
||||||
ch = ev->data1;
|
ch = ev->data1;
|
||||||
|
if ((ev->subtype == EV_GUI_KeyDown || ev->subtype == EV_GUI_KeyRepeat) &&
|
||||||
if (genStringEnter)
|
ch == '\b')
|
||||||
{
|
{
|
||||||
switch (ch)
|
|
||||||
{
|
|
||||||
case '\b':
|
|
||||||
if (saveCharIndex > 0)
|
if (saveCharIndex > 0)
|
||||||
{
|
{
|
||||||
saveCharIndex--;
|
saveCharIndex--;
|
||||||
savegamestring[saveCharIndex] = 0;
|
savegamestring[saveCharIndex] = 0;
|
||||||
}
|
}
|
||||||
break;
|
}
|
||||||
|
else if (ev->subtype == EV_GUI_KeyDown)
|
||||||
case GK_ESCAPE:
|
{
|
||||||
|
if (ch == GK_ESCAPE)
|
||||||
|
{
|
||||||
genStringEnter = 0;
|
genStringEnter = 0;
|
||||||
genStringCancel (); // [RH] Function to call when escape is pressed
|
genStringCancel(); // [RH] Function to call when escape is pressed
|
||||||
break;
|
}
|
||||||
|
else if (ch == '\r')
|
||||||
case '\r':
|
{
|
||||||
if (savegamestring[0])
|
if (savegamestring[0])
|
||||||
{
|
{
|
||||||
genStringEnter = 0;
|
genStringEnter = 0;
|
||||||
|
@ -2903,16 +2900,23 @@ bool M_Responder (event_t *ev)
|
||||||
M_ClearMenus ();
|
M_ClearMenus ();
|
||||||
genStringEnd (SelSaveGame); // [RH] Function to call when enter is pressed
|
genStringEnd (SelSaveGame); // [RH] Function to call when enter is pressed
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (ev->subtype == EV_GUI_KeyDown || ev->subtype == EV_GUI_KeyRepeat)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (ev->subtype != EV_GUI_KeyDown && ev->subtype != EV_GUI_KeyUp)
|
if (ev->subtype != EV_GUI_KeyDown && ev->subtype != EV_GUI_KeyUp)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (ev->subtype == EV_GUI_KeyRepeat)
|
||||||
|
{
|
||||||
|
// We do our own key repeat handling but still want to eat the
|
||||||
|
// OS's repeated keys.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
ch = ev->data1;
|
ch = ev->data1;
|
||||||
keyup = ev->subtype == EV_GUI_KeyUp;
|
keyup = ev->subtype == EV_GUI_KeyUp;
|
||||||
if (messageToPrint && messageRoutine == NULL)
|
if (messageToPrint && messageRoutine == NULL)
|
||||||
|
|
Loading…
Reference in a new issue