我有一个gs ii，最近闪过cm9 - 我想知道是否有任何方法可以将硬件按钮映射到触摸屏快捷键 - 特别是长按菜单按钮=搜索（我真的使用过它并严重想念它）。在该注释 - 我也想知道CM9或任何其他SLIM / CLEAN IC ROM只有只有快捷方式（右滑动呼叫/左滑动消息等）的任何接触线端口。
I have a GS II and recently flashed to CM9 - I wanted to know if there's any way to map the hardware buttons back to the TouchWiz shortcuts - specifically the long press menu button = search (I really used that and seriously miss it).
On that note - I also wanted to know if there are any TouchWiz ports of only the shortcuts (right swipe call / left swipe message etc.) for CM9 or any other slim/clean ICS ROM.
With ButtonRemapper you can remap certain keys, but long press is currently not supported. It might be implemented in the future though, I suggest you follow the topic: http://forum.xda-developers.com/showthread.php?t=850464
The keymap file for Cyanogen is in
All you have to do is find a way to change this file (never forget backup). Of course that requires your device to be rooted, you could easily do that using Root Explorer. Android loads keymap configurations on boot, so any changes while the system is running need a restart.
I'm not sure how long press is mapped on this file, My search function does work long pressing the menu. I checked it out, and found these two lines:
key 127 SEARCH WAKE_DROPPED key 217 SEARCH WAKE_DROPPED
Check out if these lines matches yours in your file, and if not, change it to a similar way.