![]() |
Idea for the WP34S PC-emulator - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Idea for the WP34S PC-emulator (/thread-185139.html) |
Idea for the WP34S PC-emulator - fhub - 06-01-2011 Hi, now that my first idea (EEX instead of E) has been well received, I dare to present one of my other ideas for the WP34S emulator. ;-)
First of all many thanks to the developers of this fantastic project, which I've discovered only a few weeks ago. I don't know who of the developers (Walter/Paul/Marcus?) is responsible for the PC-emulation, but at least here's my idea: What I always found very annoying with these calculator emulations is the complicated way to access the calculator keys (or functions) via the PC-keyboard: either you have to make many mouseclicks or you have to remember lots of keyboard-shortcuts for the calculator keys (mostly not mapped very well).
Some time ago I found a TI-58/59C emulator on this website:
Now my question to the author of the WP34S PC-emulation:
My idea would be like this: Let me give you a few examples how this key-file could look like: SIN 24 12 SINH 24 11 12 ASINH 25 11 12 LN 25 41 MOD 26 45 (for RMDR) ... For the numbers I just used a kind of key-code (row/column of the calculator key), but this could of course be coded in a different way. If parsing these names (SIN, SINH, ASINH, ...) during the normal usage of the calculator keys (e.g. while entering a number) would be too complicated to implement, then using this special keyboard-mode might also be switched on and off by a special key, e.g. <Space>. With this I mean that after having entered a number I press the <Space>-key, then enter my name (SIN, ASIN, ...) and finally end my name with <Space> again, and then the emulator executes the keystrokes for this name. (Of course it would be nice if the entered name would appear somewhere, e.g. in an extra window or better on the calculator display).
So what do you think about this idea?
Regards,
Edited: 1 June 2011, 9:00 a.m.
Re: Idea for the WP34S PC-emulator - Marcus von Cube, Germany - 06-01-2011 Franz, its me. To be honest, it used to be Cyrille de Brebisson. The emulator kernel is a Windows MFC program originally furnished by HP as part of the development kit for the 20b platform. I changed the linkage to the rest of the project to be a DLL so that the rest can be compiled with the free version of Visual Studio. To change the inner workings of the GUI, you will need a full blown Visual Studio installation to compile the DLL itself. The sources are included in the SVN repository so feel free to adapt them to your needs. ;-) Now back to your idea: On a TI-59 there are no hidden functions except for some OP nn and PGM nn combinations. In principle, all is on the keyboard. So mapping SIN to the key labeled SIN is relatively straight forward. This is not the case with wp34s. It has hundreds of functions in its catalogues. If you want to address all of these by name, the mapping file will become very convoluted. And how do you enter a greek alpha or gamma as part of the function name? The easier way would be to just address the visible keyboard labels. None of the typeable names may then start with f, g, or h because otherwise you can not reach the prefix keys. I fear none of the above will be done by me in the foreseeable future. You can change the mapping of keyboard keys to calculator keys yourself, its all in the skin files.
Marcus
Re: Idea for the WP34S PC-emulator - Gerson W. Barbosa - 06-01-2011
Quote: These are assigned to F10, F11 and F12 already.
Re: Idea for the WP34S PC-emulator - Marcus von Cube, Germany - 06-01-2011 On my Mac I had to sacrifice F11 and F12 in Windows for INS and DEL. We can of course map the keys anywhere we want. As stated before, just modify the skin files to your liking!
Re: Idea for the WP34S PC-emulator - fhub - 06-01-2011 Ok Marcus, I see that my idea doesn't seem to attract much interest. ;-) Quote:Of course I've done this already (this QWERTY layout is in fact terrible!), but unfortunately I've found some limitations for these keyboard mappings:
I don't know which codes you've used in those *.skin files (some are ASCII, but others are absolutely unknown for me, don't even look like the usual keyboard scan codes). If I don't want to use the * and / on the numeric keypad (not every notebook keyboard has a separated numeric block), then I would have to use these / and * on the usual keyboard, and on the German keyboards these are the shifted keys of 7 and +. Now I've not found a way to access these shifted keys with any code in the *.skin file, even if I press Shift-7 the normal 7 is entered in the emulator (and the same is true for Shift-+, which executes + instead of *). Is there any method to assign such shifted keys in the *.skin file?
Edited: 1 June 2011, 10:03 a.m.
Re: Idea for the WP34S PC-emulator - Marcus von Cube, Germany - 06-01-2011
Quote:
In theory, adding 1000 to the code should do the trick but I seem to have problems with this. You will have to wait until next week before I can debug the situation. As you probably know I do have a German keyboard myself.
Re: Idea for the WP34S PC-emulator - Tim Wessman - 06-01-2011 We have that problem as well. The way we currently do the keys doesn't really handle different keyboard layouts at all. . . :-( Haven't really come up with a good way to do it yet.
TW
Re: Idea for the WP34S PC-emulator - fhub - 06-01-2011 Quote:In your todays build I saw a non-GUI version (wp34s.exe) for the first time, and testing this version I found that here the situation is just the opposite: the shifted PC-keys are working (e.g. Shift-7 gives / and Shift-+ gives *), but the same keys on the numeric block don't work. So the problem with the non-working shifted PC-keys must be somewhere in the GUI version, maybe this will help you in finding the location of this bug ...
Re: Idea for the WP34S PC-emulator - Paul Dale - 06-01-2011 I find the keyboard to emulator mapping quite natural and easy to use. The mapping is based on the top three rows of keys mapping to the top leftside three rows of the keyboard (US/UK/AUS layout though). This puts f, g & h in their correct positions BTW. Digits are digits, the arithmetic symbols are unchanged, the column down the left is UJM & space. Leaving two keys unaccounted for . and , being . and R/S respectively.
Re: Idea for the WP34S PC-emulator - fhub - 06-01-2011 Quote:Well, that's of course all a matter of taste. ;-)
I like my own mapping much more - e.g. S for STO, R for RCL, X for XEQ, E for EEX etc. is much easier to remember. I also have mapped the 4 cursor keys (left/right/up/down) to exactly the same keys on the calculator.
But as I said: everybody as he likes it ...
Re: Idea for the WP34S PC-emulator - Paul Dale - 06-01-2011 Quote: It is of course and it is also basically irrelevant to the goals of the project -- we're making a calculator not an emulator :-) The emulator is a step on that path just like the console version was (and still is).
|