TAP_GenerateEvent

Topfield Documentation

void TAP_GenerateEvent( word evtCode, dword param1, dword param2 )

It makes an event such as input from the RCU.

  • evtCode : event (only the EVT_KEY is supported now)
  • param1, param2 : The event value

Additional Documentation

This function behaves rather strangely on the TF5800 due to the mappings applied to keys to support the UK's remote layout. For example, to generate an RKEY_Exit keypress, RKEY_AudioTrk must be sent.

Some key codes have a special function

name from key.hhex key codefunction
RKEY_Cmd_00x10027test colour bars
RKEY_Cmd_10x10028blank screen
RKEY_Cmd_20x10029?
RKEY_Cmd_30x1002aall channels go blank
RKEY_Cmd_40x1002ball channels go blank
RKEY_Cmd_50x1002c?
RKEY_Cmd_60x1002djumps to the beginning of the timeshift/record buffer
RKEY_Cmd_70x1002e?
RKEY_Cmd_80x1002f?
RKEY_Cmd_90x10030?
RKEY_Cmd_a0x10031overwrites the first 1024 bytes of the disk with 0xff
RKEY_Cmd_b0x10032test bars - black and white split half screen
RKEY_Cmd_c0x10033test bars - black and red split half screen
RKEY_Cmd_d0x10034test bars - black and green split half screen
RKEY_Cmd_e0x10035test bars - black and blue split half screen
RKEY_Cmd_f0x10036FACTORY RESET
FKEY_AVMenu0xff001a/v output setting menu
FKEY_Sleep0xff002Sleep toggle
FKEY_SoundMenu0xff003Sound track menu
FKEY_FavMenu0xff004Favourites menu
FKEY_SubtitleMenu0xff005Subtitle track menu
FKEY_00060xff006?
FKEY_PIPBackward0xff007Move pip backwards
FKEY_PIPForward0xff008Move pip
FKEY_SetBookmark0xff009Set bookmark
FKEY_GotoBookmark0xff00aGoto bookmark