{"id":767,"date":"2015-01-21T00:32:15","date_gmt":"2015-01-21T00:32:15","guid":{"rendered":"http:\/\/blog.silverterra.net\/?p=767"},"modified":"2015-02-07T02:03:43","modified_gmt":"2015-02-07T02:03:43","slug":"webos-emulator-gestures-keyboard-shortcuts","status":"publish","type":"post","link":"https:\/\/blog.silverterra.net\/?p=767","title":{"rendered":"webOS Emulator &#8211; Gestures &#038; Keyboard shortcuts"},"content":{"rendered":"<blockquote><p>Goal: to simulate gestures and keyboard events on emulator<\/p><\/blockquote>\n<p>Using the emulator for webOS development on a PC lacks one important item that is key a mobile device, touch. Fortunately, there are keyboard and mouse shortcuts to emulator the gestures. Below is the list of ones I\u2019ve found so far.<\/p>\n<p><strong>Gestures<\/strong><\/p>\n<style>\n.tab{\n  border-left: 1px solid #ddd;\n  border-top: 1px solid #ddd;\n}\n.tab td, .tab th{\n  border-right: 1px solid #ddd;\n  border-bottom: 1px solid #ddd;\n  padding: 3px;\n}\n.tab th{\n  font-weight:bold;\n  background-color: #eee;\n}\n<\/style>\n<table class=\"tab\" cellspacing=0>\n<tbody>\n<tr>\n<th>Gesture<\/th>\n<th>Touch Gesture<\/th>\n<th>Description<\/th>\n<th>Emulator Method<\/th>\n<\/tr>\n<tr>\n<td>Tap<\/td>\n<td>Fast light, touch<\/td>\n<td>Used to select<\/td>\n<td>Mouse left click<\/td>\n<\/tr>\n<tr>\n<td>Swipe<\/td>\n<td>Fast, light horizontal gesture, from right to left or left to right<\/td>\n<td>Used to change a cards position &amp; other<\/td>\n<td>Mouse left click &amp; quick drag<\/td>\n<\/tr>\n<tr>\n<td>Drag<\/td>\n<td>Light touch then drag<\/td>\n<td>Used to scroll, etc.<\/td>\n<td>Mouse left click and hold, then drag and release<\/td>\n<\/tr>\n<tr>\n<td>Flick<\/td>\n<td>Fast swipe, any direction<\/td>\n<td>Used to scroll fast.<\/td>\n<td>Mouse left click &amp; drag faster<\/td>\n<\/tr>\n<tr>\n<td>Zoom In<\/td>\n<td>Pinch In<\/td>\n<td>Zoom in<\/td>\n<td>Not supported<\/td>\n<\/tr>\n<tr>\n<td>Zoom Out<\/td>\n<td>Pinch Out<\/td>\n<td>Zoom out<\/td>\n<td>Not supported<\/td>\n<\/tr>\n<tr>\n<td>Close app<\/td>\n<td>Flick off top of screen<\/td>\n<td>Close App<\/td>\n<td>Flick off top of screen with mouse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Keyboard shortcuts<\/strong><\/p>\n<table class=\"tab\" cellspacing=0>\n<tbody>\n<tr>\n<th>Key<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>Alt<\/td>\n<td>Option key<\/td>\n<\/tr>\n<tr>\n<td>End<\/td>\n<td>Open and close the launcher<\/td>\n<\/tr>\n<tr>\n<td>Esc<\/td>\n<td>Perform the back gesture (or swipe back)<\/td>\n<\/tr>\n<tr>\n<td>Home<\/td>\n<td>Minimize \/ maximize the card<\/td>\n<\/tr>\n<tr>\n<td>Left\/Right Arrow<\/td>\n<td>Flip between apps<\/td>\n<\/tr>\n<tr>\n<td>Control<\/td>\n<td>Sym (symbol) key<\/td>\n<\/tr>\n<tr>\n<td>F5<\/td>\n<td>Simulate shaking<\/td>\n<\/tr>\n<tr>\n<td>F6<\/td>\n<td>Simulate &#8220;up&#8221; (12:00 or normal) orientation<\/td>\n<\/tr>\n<tr>\n<td>F7<\/td>\n<td>Simulate &#8220;down&#8221; (6:00) orientation<\/td>\n<\/tr>\n<tr>\n<td>F8<\/td>\n<td>Simulate &#8220;right&#8221; (3:00) orientation<\/td>\n<\/tr>\n<tr>\n<td>F9<\/td>\n<td>Simulate &#8220;left&#8221; (9:00) orientation<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Using emulator host mode<\/strong><\/p>\n<p><a href=\"http:\/\/localhost:5580\/\" target=\"_blank\">http:\/\/localhost:5580\/<\/a><\/p>\n<p><strong>Simulate events<\/strong><\/p>\n<table class=\"tab\" cellspacing=0>\n<tbody>\n<tr>\n<th>linux commandline command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>luna-send -n 1 luna:\/\/com.palm.pmradiosimulator\/set_incomingcall {\\&#8221;number\\&#8221;:\\&#8221;14086177431\\&#8221;}<\/td>\n<td>simulate incoming call<\/td>\n<tr>\n<td>luna-send -n 1 luna:\/\/com.palm.pmradiosimulator\/set_incomingsms {\\&#8221;number\\&#8221;:\\&#8221;4086177431\\&#8221;,\\&#8221;   message\\&#8221;:\\&#8221;&#8216;Virtura Reality&#8217;\\&#8221;}<\/td>\n<td>simulate incoming sms<\/td>\n<\/tr>\n<tr>\n<td colspan=2>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>luna-send -n 1 luna:\/\/com.palm.pmradiosimulator\/set_position {\\&#8221;lat\\&#8221;:\\&#8221;37.3\\&#8221;,\\&#8221;long\\&#8221;:\\&#8221;-122\\&#8221;}<\/td>\n<td>Generate a GPS fix<\/td>\n<\/tr>\n<tr>\n<td>luna-send -n 1 luna:\/\/com.palm.pmradiosimulator\/set_operator {\\&#8221;operator\\&#8221;:\\&#8221;Sprint\\&#8221;}<\/td>\n<td>Change the operator name (on the next power cycle)<\/td>\n<\/tr>\n<tr>\n<td>luna-send -f -P -i palm:\/\/com.palm.location\/getCurrentPosition &#8216;{&#8220;subscribe&#8221;:true}&#8217;<\/td>\n<td>GPS &#8211; Get current location<\/td>\n<\/tr>\n<tr>\n<td colspan=2>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>luna-send -P -n 1 palm:\/\/com.palm.downloadmanager\/download &#8216;{&#8220;target&#8221;:&#8221;http:\/\/example.com\/file.mp3&#8243;}&#8217;<\/td>\n<td>call the Download Manager to download a website file<\/td>\n<\/tr>\n<tr>\n<td>luna-send -P -i palm:\/\/com.palm.downloadmanager\/download &#8216;{&#8220;target&#8221;:&#8221;http:\/\/example.com\/file.mp3&#8243;, &#8220;subscribe&#8221;:true}&#8217;<\/td>\n<td>To do the same download but see status updates as it downloads, you would code<\/td>\n<\/tr>\n<tr>\n<td colspan=2>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>luna-send -n -i palm:\/\/com.palm.keys\/audio\/status &#8216;{&#8220;subscribe&#8221;:true}&#8217;<\/td>\n<td>Key service &#8211; Subscribe to volume key status changes<\/td>\n<\/tr>\n<tr>\n<td colspan=2>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>luna-send -n 1 palm:\/\/com.palm.applicationManager\/launch {\\&#8221;id\\&#8221;:\\&#8221;com.palm.app.phone\\&#8221;}<\/td>\n<td>run an application<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>good luck&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Goal: to simulate gestures and keyboard events on emulator Using the emulator for webOS development on a PC lacks one important item that is key a mobile device, touch. Fortunately, there are keyboard and mouse shortcuts to emulator the gestures. Below is the list of ones I\u2019ve found so far. Gestures Gesture Touch Gesture Description [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,17],"tags":[],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-cheetsheet","category-webos"],"_links":{"self":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=767"}],"version-history":[{"count":1,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions\/768"}],"wp:attachment":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}