InputHandler.cs improvement suggestions (1 Viewer)

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Here are two suggestions for InputHandler.cs!

    1
    line 318
    if (map.Sound != string.Empty)
    replace with:
    if (map.Sound != string.Empty && !g_Player.Playing)

    it would make it more consistent with main key presses, mapped from keymap.xml (where sounds are not played if player is playing)

    2
    "KEY" action does not work because SendKeys expectslowercase keys only
    line 338
    SendKeys.SendWait(map.CmdProperty);
    replace with:
    SendKeys.SendWait(map.CmdProperty.ToLower());
     

    Users who are viewing this thread

    Top Bottom