-
Jun29
Palm Mojo SDK keyboard & mouse controls
Posted in WebOS, 软件开发, 7,772 views
-
Palm Pre 采用的web OS系统的SDK(Mojo)已经发布,其中包含有web OS模拟器。Palm Pre的操作有多种形式,本文列出SDK中用键盘和鼠标操作模拟器的方法。
Mojo SDK keyboard & mouse controls
--------------------------------------------------------------------------------
Here's my Q&D notes on emulator. Thanks to others for some info.
--Keyboard
Escape is Back Gesture,
Home is Center Button,
End is the Flick Up Gesture (like to bring up card view or the launcher),
Left/Right arrows switch applications,
Shift is Shift (duh!),
Alt is Option (orange),
Left Ctrl+letter does Sym for that letter,
and of course there's the keyboard too.--Mouse
Left Mouse click is "touching screen".
Left Mouse drag is "dragging on screen". Useful in card view to "swipe up" (close),and drag left right (card view, launcher, etc.).
Left Mouse click and hold will select card in card view for shuffling cards, or changing out Quick Launch applications.
Double left mouse click, is zoom in/out on selected paragraph in browser. Not same as two finger zoom?
To bring up the Quick Launch "wave", drag up from the bottom of the screen. Note that this is hard to get to work, as one has to start in the exact bottom row of pixels.--Emulator
The "Host" key defaults to Right Ctrl, used for accessing emulator menus. Following is a short list:
Tap and release Host key to return keyboard capture to PC (i.e. done using emulator). Note if using "Activation follows mouse (X-Mouse)", this is not required (see "Tweak UI", MS Power Toy, for info).
Host+F Full screen toggle
Host+N Session information dialog
Host+S Take a snapshot (from emulator)
Host+Q Close emulator--Helper Batch Files, in "C:\Program Files\Palm\SDK\bin" (I've not tried, YMMV):
palm-emulator.bat - Starts emulator.
palm-generate.bat - Create Application template. Will create directory if it doesn't exist.
palm-inspector.bat - Runs Palm inspector. Appears to be the debugger interface.
palm-install.bat - Installs App on USB connected Prē (usb), or emulator (tcp).
palm-launch.bat - Launch App on USB connected Prē (usb), or emulator (tcp). With debugging options.
palm-package.bat - Package App into ipk format.
Open up "DOS" command shell to use. Installing SDK adds bin directory to your path.Run batch file with no arguments to get usage.
--Mojo API
TBD
See sample code in "C:\Program Files\Palm\SDK\share\samples" for now.Related posts:

Leave a comment | Trackback 这篇文章有2个评论.
1F macromedia
2009-07-07 10:47 am
Great post!
2F VerePreoche
2009-07-12 7:39 am
Very nice theme where did you get it? Any recommends?