HP Forums
[Request] for [theta x, t,] key - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: [Request] for [theta x, t,] key (/thread-6627.html)



[Request] for [theta x, t,] key - compsystems - 07-30-2016 02:10 AM

Hello

The [theta x, t,] key just put x repetitively, my idea is:

a tap x -> [x]

Double-click xx -> [y]

3 taps -> [z]

4 taps... -> [t]

5 taps... -> [theta]

Do you agree with this idea?


RE: [Request] for [theta x, t,] key - Eddie W. Shore - 07-31-2016 11:21 PM

Better yet have the key put up a soft key menu: x, y, t, theta, n


RE: [Request] for [theta x, t,] key - compsystems - 08-01-2016 12:47 AM

I think I saw somewhere the idea proposed (change variable in each new keystroke), you know that calculator?


RE: [Request] for [theta x, t,] key - Fortin - 08-03-2016 01:59 AM

Here's a teaser from one of the projects that I've been working on... hopefully things will be ready for a public release soon. :-)

With user keys on, pressing XTTN in the manner you described will return x,y,z,t,θ (and shift-XTTN will return in caps).


Code:

EXPORT MultiTap(K,L1)
BEGIN
  LOCAL Delay:=200;

  LOCAL C:=0;
  LOCAL P:=1;
  LOCAL T:=0;

  REPEAT 
    T:=TICKS;
 
    WHILE ISKEYDOWN(K)==P DO
      IF TICKS-Delay>T THEN
        IF P==1 THEN
          C:=C+1;
        END;

        BREAK 2;
      END;
    END;

    IF P==1 THEN
      C:=C+1;
    END;
 
    P:=ISKEYDOWN(K);

  UNTIL 0; 

  RETURN IFTE(C≥1 AND C≤SIZE(L1), L1(C), L1(1));

END;



KEY K_Xttn()
BEGIN
  LOCAL L1:={"x","y","z","t","θ"};
  LOCAL K:=17;

  RETURN MultiTap(K,L1); 
END;


KEY KS_Xttn()
BEGIN
  LOCAL L1:={"X","Y","Z","T","θ"};
  LOCAL K:=17;

  RETURN MultiTap(K,L1); 
END;



RE: [Request] for [theta x, t,] key - cyrille de brébisson - 08-03-2016 06:16 AM

Hello,

Nice idea!

Cyrille


RE: [Request] for [theta x, t,] key - compsystems - 08-03-2016 12:49 PM

thanks if is implemented in the next firmware