OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

[Suggestion] Allow the viewer to set key commands

Open JunmoreHeavyBox opened this issue 2 years ago • 7 comments

Description

The default numeric keypad camera control in the viewer's is not very convenient for users without a numeric keypad. I want to change the keys myself, but the viewers does not provide control configuration.

Leaving aside WASD and directional keys.

JunmoreHeavyBox avatar Nov 20 '23 14:11 JunmoreHeavyBox

Haven't looked at this issue for a long time.

JunmoreHeavyBox avatar Sep 22 '24 17:09 JunmoreHeavyBox

After releasing the setted key, the camera did not stop moving. The button icons in the interface have not been updated. There is a problem with changing the 'backward' key, as it did not apply the changes but instead used the value of 'forward'.

optionSaveErrorLog.txt

The initial key is not commonly used. Please swap 'forward(q)' and 'backward(e)' for 'up(w)' and 'down(s)'.

JunmoreHeavyBox avatar Sep 24 '24 12:09 JunmoreHeavyBox

My fault- forgot to handle the key-up events. I've fixed this.

I'm not sure why closing the options dialog is failing for you- It doesn't for me. What did you do before you attempted to close the dialog?

leezer3 avatar Sep 24 '24 19:09 leezer3

I tried to change the key and click close to save.

JunmoreHeavyBox avatar Sep 24 '24 19:09 JunmoreHeavyBox

I manually entered instead of using the dropdown menu to change keys. so

JunmoreHeavyBox avatar Sep 26 '24 18:09 JunmoreHeavyBox

OK, that might not work right- Not expected you to try that :)

If you use the dropdown, this should be OK. I'll disable typing in there for the next build (might be a few days)

leezer3 avatar Sep 26 '24 18:09 leezer3

I mention the remaining camera reset commands and camera controls related to the route viewer.

JunmoreHeavyBox avatar Oct 02 '24 19:10 JunmoreHeavyBox

Urge...

Problem of key definition

And

OK, that might not work right- Not expected you to try that :)

If you use the dropdown, this should be OK. I'll disable typing in there for the next build (might be a few days)

JunmoreHeavyBox avatar Nov 25 '24 17:11 JunmoreHeavyBox

I can't reproduce the issue in your image (although this may be because of the re-write of the CFG loader in relatively recent builds) Note that the CFG is only saved when the window is closed however.

I've fixed the editing of the boxes though, thanks for reminding me.

leezer3 avatar Nov 25 '24 18:11 leezer3

Thank you.

JunmoreHeavyBox avatar Nov 25 '24 18:11 JunmoreHeavyBox

I want to explain.

When I confirmed the title, I think I used the plural form of Viewers, and I think I should mention both Object Viewer and RouteViewer. But this also brings some descriptive issues. I apologize.

I apologize for not providing an explanation for the unfinished task as I was eager to close the issue.

Probably

  • Allow the RouteViewer to set key commands.
  • The button icons in the interface have not been updated due to key changes.

JunmoreHeavyBox avatar Dec 31 '24 05:12 JunmoreHeavyBox