RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Key_Pressed

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_Poll
» Reason Codes
» Key_Pressed

Key_Pressed

(Reason Code 8)
Exit
Block
+0 Window handle with focus
+4 Icon handle, or -1 if none
+8 X offset of caret (relative to window origin)
+12 Y offset of caret (relative to window origin)
+16 Caret Flags
+20 Index of caret into string (if icon)
+24 Character Code (4 bytes)

Use

This code is returned from Wimp_Poll and indicates that a key while a window belonging the application has the input focus.

Notes

If the application does not wish to act upon a keypress such as a hot key’, then they can be passed on to other applications by calling Wimp_ProcessKey.

If the caret is inside a writeable icon when a key is pressed, Wimp_Poll will not generate this code for Wimp Managed Key Presses?.

Wide characters are reported using multiple Key_Pressed events.

See also

  • Reason Codes
  • Wimp Managed Key Presses
  • Wimp_Poll
  • Wimp_ProcessKey
Revised on June 17, 2009 21:59:50 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager General Principles, The Window Manager Keyboard Input And Text Handling, Caret Flags, Poll Mask, Wimp Managed Key Presses, Character Codes, Wimp_ProcessKey, Reason Codes

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys