mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Improve naming, use virtual key constants (#979)
This commit is contained in:

committed by
GitHub

parent
77af1a5483
commit
b67af71f33
@@ -166,13 +166,13 @@ MxLong RegistrationBook::HandleKeyPress(MxU8 p_key)
|
||||
key = p_key;
|
||||
}
|
||||
|
||||
if ((key < 'A' || key > 'Z') && key != '\b') {
|
||||
if (key == ' ') {
|
||||
if ((key < 'A' || key > 'Z') && key != VK_BACK) {
|
||||
if (key == VK_SPACE) {
|
||||
DeleteObjects(&m_atom, RegbookScript::c_iic006in_RunAnim, RegbookScript::c_iic008in_PlayWav);
|
||||
BackgroundAudioManager()->RaiseVolume();
|
||||
}
|
||||
}
|
||||
else if (key != '\b' && m_unk0x280.m_cursorPos < 7) {
|
||||
else if (key != VK_BACK && m_unk0x280.m_cursorPos < 7) {
|
||||
m_name[0][m_unk0x280.m_cursorPos] = m_alphabet[key - 'A']->Clone();
|
||||
|
||||
if (m_name[0][m_unk0x280.m_cursorPos] != NULL) {
|
||||
@@ -190,7 +190,7 @@ MxLong RegistrationBook::HandleKeyPress(MxU8 p_key)
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (key == '\b' && m_unk0x280.m_cursorPos > 0) {
|
||||
if (key == VK_BACK && m_unk0x280.m_cursorPos > 0) {
|
||||
m_unk0x280.m_cursorPos--;
|
||||
|
||||
m_name[0][m_unk0x280.m_cursorPos]->Enable(FALSE);
|
||||
|
Reference in New Issue
Block a user