inserting_20characters_20into_20the_20keyboard_20buffer
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| inserting_20characters_20into_20the_20keyboard_20buffer [2018/03/31 13:19] – external edit 127.0.0.1 | inserting_20characters_20into_20the_20keyboard_20buffer [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Inserting characters into the keyboard buffer===== | =====Inserting characters into the keyboard buffer===== | ||
| - | //by Richard Russell, July 2006//\\ \\  On the //BBC Microcomputer// | + | //by Richard Russell, July 2006//\\ \\  On the //BBC Microcomputer// | 
| - | *FX138, | + | |
| - | //BBC BASIC for Windows// doesn' | + | < | 
| - | DEF PROCfx138(C%) | + |  | 
| - | WM_CHAR = 258 | + | </ | 
| - | SYS " | + | |
| - | ENDPROC | + | //BBC BASIC for Windows// doesn' | 
| - | So to insert the character " | + | |
| - | PROCfx138(82) | + | <code bb4w> | 
| - | or, equivalently, | + |  | 
| - | PROCfx138(ASC(" | + | WM_CHAR = 258 | 
| + | SYS " | ||
| + | ENDPROC | ||
| + | </ | ||
| + | |||
| + | The equivalent procedure for //BBC BASIC for SDL 2.0// is as follows: | ||
| + | |||
| + | <code bb4w> | ||
| + | DEF PROCfx138(C%) | ||
| + | LOCAL ev{} : DIM ev{type%, | ||
| + | ev.type% = &303 : ev.text& | ||
| + | ENDPROC | ||
| + | </ | ||
| + |  | ||
| + | So to insert the character " | ||
| + | |||
| + | <code bb4w> | ||
| + |  | ||
| + | </ | ||
| + | |||
| + | or, equivalently, | ||
| + | |||
| + | <code bb4w> | ||
| + |  | ||
| + | </ | ||
inserting_20characters_20into_20the_20keyboard_20buffer.1522502365.txt.gz · Last modified: 2024/01/05 00:17 (external edit)
                
                