Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Taschte_Code

Examples
Ganzizahl x = 90;

Programmteil wo_immerwider_gmacht_wird() bitte
  kei_Liniefarb();
  Viereck(x, 10, 3, 80);
danke

Programmteil Taschte_truckt() bitte
  if (Taschte_Code GLICHGROSSWIE BACKSPACE) bitte
    x = x - 5;
  danke
danke

Farb fillVal = Farb(126);

Programmteil wo_immerwider_gmacht_wird() bitte
  Fuellfarb(fillVal);
  Viereck(25, 25, 50, 50);
danke

Programmteil Taschte_truckt() bitte
  if (Taschte  GLICHGROSSWIE CODED) bitte
    if (Taschte_Code GLICHGROSSWIE UP) bitte
      fillVal = 255;
    danke suscht if (Taschte_Code GLICHGROSSWIE DOWN) bitte
      fillVal = 0;
    danke 
  danke suscht bitte
    fillVal = 126;
  danke
danke
Description The system variable Taschte_Code is used to detect special Taschte s such as the UP, DOWN, LEFT, RIGHT arrow Taschte s and ALT, CONTROL, SHIFT, BACKSPACE, TAB, ENTER, RETURN, ESC, and DELETE. When checking for UP, DOWN, LEFT, RIGHT, ALT, CONTROL, and SHIFT, it's first necessary to check and see if the Taschte is coded. This is done with the conditional "waen(Taschte GLICHGROSSWIE CODED) bittedanke" as shown in the second example. The Taschte s included in the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and DELETE) do not require checking to see if they Taschte is coded. If you're making cross-platform projects, note that the ENTER Taschte is commonly used on PCs and Unix and the RETURN Taschte is used instead on Macintosh. Check for both ENTER and RETURN to make sure your program will work for all platforms.
Syntax
Taschte_Code
Parameters
Usage Web & Application
Related Taschte
Taschte_truckt
Taschte_truckt()
Taschte_losgla()
Stefan Baltensperger 2009

Creative Commons License