PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

keys for smartphone

hey, what are the mappings for smartphone for vkA, vkB, ...
is pockethal framework reading the soft keys?

TIA
Kak
By the soft keys, mean the menu buttons on the left/right?

They send the VK_F1 and VK_F2 values. I think they are defined in one of the window includes...

I don't think that the A, B, and C are necessarily the 1,2, and 3.

Actually, looking through some source, there are several phone specific things defined:

Code:

#define VK_TSOFT1 VK_F1 // Softkey 1
#define VK_TSOFT2 VK_F2 // Softkey 2
#define VK_TTALK VK_F3 // Talk
#define VK_TEND VK_F4 // End
#define VK_THOME VK_LWIN // Home
#define VK_TBACK VK_ESCAPE // Back

#define VK_TACTION VK_RETURN // Action
#define VK_TRECORD VK_F10 // Record
#define VK_TFLIP VK_F17 // Flip
#define VK_TPOWER VK_F18 // Power
#define VK_TVOLUMEUP VK_F6 // Volume Up
#define VK_TVOLUMEDOWN VK_F7 // Volume Down
fast_rx wrote:Lots of thanks, all of them work great :) except for VK_LWIN, it seems like it is a kind of special key, I don't get it in the OnKeydown function :(