|
Post by Firehawke on Mar 12, 2008 21:36:27 GMT -5
I've got this nice keyboard with a full set of additional multimedia keys. Works fine with Windows Media Player, but I'd like to see things like emulators actually support these days-- keys that are devoted to and marked for such things as pausing, fast forward, rewind, and volume control. Granted not all emulators have rewind, but it would certainly be useful to take advantage of the volume, pause, and fast forward buttons. A quick google popped up some useful information on the keys and how they're read. I don't think you'd need or want the background hook, though. www.codeguru.com/cpp/w-p/system/keyboard/article.php/c5655/
|
|
|
Post by Gamesoul Master on Mar 12, 2008 21:58:13 GMT -5
Since keyboard keys are read by "unique" identifiers, couldn't you just set the shortcut keys in psx.ini to use those extra keys?
|
|
|
Post by Ultima on Mar 12, 2008 22:36:05 GMT -5
I haven't tested that theory (and couldn't without a multimedia keyboard), but it certainly sounds plausible to me... #define DIK_PREVTRACK 0x90 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */ #define DIK_NEXTTRACK 0x99 /* Next Track */ #define DIK_MUTE 0xA0 /* Mute */ #define DIK_CALCULATOR 0xA1 /* Calculator */ #define DIK_PLAYPAUSE 0xA2 /* Play / Pause */ #define DIK_MEDIASTOP 0xA4 /* Media Stop */ #define DIK_VOLUMEDOWN 0xAE /* Volume - */ #define DIK_VOLUMEUP 0xB0 /* Volume + */ #define DIK_WEBHOME 0xB2 /* Web home */ #define DIK_APPS 0xDD /* AppMenu key */ #define DIK_POWER 0xDE /* System Power */ #define DIK_SLEEP 0xDF /* System Sleep */ #define DIK_WAKE 0xE3 /* System Wake */ #define DIK_WEBSEARCH 0xE5 /* Web Search */ #define DIK_WEBFAVORITES 0xE6 /* Web Favorites */ #define DIK_WEBREFRESH 0xE7 /* Web Refresh */ #define DIK_WEBSTOP 0xE8 /* Web Stop */ #define DIK_WEBFORWARD 0xE9 /* Web Forward */ #define DIK_WEBBACK 0xEA /* Web Back */ #define DIK_MYCOMPUTER 0xEB /* My Computer */ #define DIK_MAIL 0xEC /* Mail */ #define DIK_MEDIASELECT 0xED /* Media Select */ Convert the hex codes to decimal ( here if you don't know how -- you probably do ).
|
|
|
Post by Gamesoul Master on Mar 12, 2008 23:10:37 GMT -5
Well... I gave it a shot. I should've known that firehawke wouldn't ask a question without already knowing what he's talking about... It seems that pSX knows a key is being pushed, but can't see what it is (if you try setting it in configuration). If you set it in psx.ini... it just doesn't work. Both methods will cause "unknown" to show up as the assigned key in the configuration.
|
|
|
Post by Firehawke on Mar 13, 2008 4:17:20 GMT -5
Multimedia keys have a different handler in Windows. I learned all that the hard way when trying to get Winamp to actually work with those keys-- you pretty much have to put in special handlers, which almost no software does. It's not terribly difficult, it's just obscure and not something most people think about doing.
|
|