kipraske / web-brogue

Play brogue in a web browser
GNU General Public License v2.0
20 stars 17 forks source link

Keyboard is not set up for text entry for recordings and save games #11

Closed kipraske closed 9 years ago

kipraske commented 9 years ago

Right now I have mapped the arrow keys to HJKL for a streamlined gameplay experience. Well, that means you can't use the arrow keys when you are creating a save game or a brogue recording.

That is probably fine for now - however, we don't have backspace OR delete which is very noticeable. So figure out the best way to handle these chars. I could just encode them and decode back on the back end of brogue for each of them: There are plenty of 8-bit characters that are not used that I could use.

See Rogue.h lines 1083+ which define the keyboard constants within brogue.

kipraske commented 9 years ago

We can probably modify the new keyboard view with updated codes. I will have to adjust everything so we can send 2-byte codes. The arrows keys are two byte codes in the brogue source.

kipraske commented 9 years ago

Complete now - just needed those 2 byte codes.