Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2143 closed defect (worksforme)

ITE: Cannot backspace when naming savegames

Reported by: SF/fancia Owned by: sev-
Priority: normal Component: Engine: SAGA
Version: Keywords:
Cc: Game: Inherit the Earth

Description

This may or may not be related to the previous menu bug I've filed, but I thought I would report it to make certain. Unlike with the official interpreter, it is impossible to backspace or otherwise eliminate a character in a savefile name. As well, the text cursor cannot be positioned using the mouse.

I've also noticed that ScummVM highlights [New Save Game] by default when first opening the options menu after starting the game, while the official interpreter does not have anything highlighted.

As always, I'm using the Mac OS X version of the game and a CVS build made with GCC 4.0 on OS X 10.4.2.

Ticket imported from: #1258533. Ticket imported from: bugs/2143.

Change History (5)

comment:1 by sev-, 19 years ago

Hmm. weird. It works here perfectly. May you insert a line

debug(0, "%d", ascii);

at line 851 in saga/input.cpp (right before "switch (ascii)") and tell me which key does it print when you press BackSpace.

Mouse was never supposed to work in that window but arrows should.

We will leave highlighting of "[New Save Game]" as a feature.

comment:2 by SF/fancia, 19 years ago

I assume you meant line 851 of interface.cpp. since input.cpp is only about 150 lines long and doesn't have a switch (ascii) line. ;3

It gives 127 as a result. (It didn't work at first, so I had to insert the debug line above the other two switch (ascii) lines in the same file; I assume that shouldn't be a problem.)

Are you sure about the mouse? I can't remember the behaviour in other releases, but the Mac OS X version of the official interpreter does support positioning the cursor with the mouse.

And good call on the highlighting; it's convenient, I just wasn't sure if you wanted 100% exact behaviour to the original or not.

comment:3 by sev-, 19 years ago

Well, that's your keyboard layout. 127 is Del key which works perfectly. Of course, it deletes character which is above cursor not to hte left of it like with Backspace.

And I am sure about the mouse just because we didn't implement this functionality in ScummVM.

comment:4 by sev-, 19 years ago

Owner: set to sev-
Resolution: worksforme
Status: newclosed

comment:5 by SF/fancia, 19 years ago

You're right, that's very odd... it acts as backspace (i.e., deleting the previous character) in all other applications, however, so is it possible that ScummVM is interpreting it as the wrong key?

Sorry, I misinterpreted what you said about the mouse.. I thought you meant that it wasn't in the original interpreter, not that it wasn't implemented.

Note: See TracTickets for help on using tickets.