webOS Nation Forums >  webOS smartphones (Pre, Pixi, Veer) >  Palm Pre and Pre Plus > Mojo SDK keyboard & mouse controls
Mojo SDK keyboard & mouse controls

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/27/2009, 01:17 PM   #1 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default 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.

Last edited by genoahous; 06/28/2009 at 01:32 PM.
genoahous is offline   Reply With Quote
Old 06/27/2009, 04:00 PM   #2 (permalink)
Member

 
Join Date: Jun 2009
Posts: 608
Likes Received: 7
Thanks: 25
Thanked 90 Times in 59 Posts
Default

I don't think Double left mouse click is zoom in/out. This is just Double tap on the screen, which zooms on the selected paragraph in the browser.

But how to really zoom in/out (using 2 fingers on a real Pre)?
sidamos is offline   Reply With Quote
Old 06/27/2009, 07:55 PM   #3 (permalink)
Member
 
AnOutsider's Avatar
 
Join Date: Jun 2009
Posts: 371
Likes Received: 0
Thanks: 31
Thanked 92 Times in 60 Posts
Default

Thanks for this. Let the dev work begin!
AnOutsider is offline   Reply With Quote
Old 06/27/2009, 08:41 PM   #4 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by sidamos View Post
I don't think Double left mouse click is zoom in/out. This is just Double tap on the screen, which zooms on the selected paragraph in the browser.

But how to really zoom in/out (using 2 fingers on a real Pre)?
Have changed text, to reflect this.

I'm not sure how to do two finger zooming in emulator. This might only work on real device.
genoahous is offline   Reply With Quote
Old 06/27/2009, 10:14 PM   #5 (permalink)
Member
 
eisnerguy1's Avatar
 
Join Date: Jun 2009
Location: Connecticut
Posts: 180
Likes Received: 0
Thanks: 92
Thanked 59 Times in 16 Posts
Default

Thanks for the awesome list! Is there any key combo to shut down the emulator? I'm running it inside of VirtualBox on my Mac & the only way looks like either suspending the machine's state or force power off the machine
eisnerguy1 is offline   Reply With Quote
Old 06/27/2009, 11:47 PM   #6 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by eisnerguy1 View Post
Thanks for the awesome list! Is there any key combo to shut down the emulator? I'm running it inside of VirtualBox on my Mac & the only way looks like either suspending the machine's state or force power off the machine
You should be able to type Host+Q (Left Ctrl+Q), then Alt+O to exit without using mouse.
What is the emulator you're using for windows under OSX? Parallels, Vmware, Wine, or ...? Which version of Windows XP or Vista?

When I get time I can try under WinXP in Parallels 3 on my 10.5 MacBook Pro. Should have time later this week...

-------------------------------

Or am I misunderstanding you. Are you running under OSX native virtualbox? I could try this on my MacBook Pro. Do you have setup instructions? Or did you just mount the Palm "CD" ISO file?

If this is your setup, then the .bat files won't work... So not too useful of setup at this time...
genoahous is offline   Reply With Quote
Old 06/28/2009, 12:05 AM   #7 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by sidamos View Post
I don't think Double left mouse click is zoom in/out. This is just Double tap on the screen, which zooms on the selected paragraph in the browser.

But how to really zoom in/out (using 2 fingers on a real Pre)?
I tried all sorts of keyboard combinations but it looks like nothing is really emulating zoom
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 06/28/2009, 12:07 AM   #8 (permalink)
Member
 
frankos72's Avatar
 
Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
Default

Quote:
Originally Posted by genoahous View Post
[*]palm-install.bat - Installs App on USB connected Prē (usb), or emulator (tcp).
Okay so I've installed some samples on my Emulated Pre but I wonder how do you install an .ipk to an USB attached Pre?
__________________
frankos72
Simple Bible - Simple Bible Pro - Bits of God Website
My Day Job: www.pigstands.com
frankos72 is offline   Reply With Quote
Old 06/28/2009, 12:24 AM   #9 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by frankos72 View Post
Okay so I've installed some samples on my Emulated Pre but I wonder how do you install an .ipk to an USB attached Pre?
I've not tried this yet, but as I understand it the install script can take either the application path or the name for the .ipk file.

Run the palm-install.bat without any command line parameters for it's usage display. This works for most of the .bat files.

To install to a usb attached device use something like:
Code:
palm-install.bat -d usb ~/projects/packages/com.example.app_1.0_all.ipk
genoahous is offline   Reply With Quote
Thanked by eisnerguy1, frankos72
Old 06/28/2009, 12:29 AM   #10 (permalink)
Member
 
eisnerguy1's Avatar
 
Join Date: Jun 2009
Location: Connecticut
Posts: 180
Likes Received: 0
Thanks: 92
Thanked 59 Times in 16 Posts
Default

Quote:
Originally Posted by genoahous View Post
You should be able to type Host+Q (Left Ctrl+Q), then Alt+O to exit without using mouse.
What is the emulator you're using for windows under OSX? Parallels, Vmware, Wine, or ...? Which version of Windows XP or Vista?

When I get time I can try under WinXP in Parallels 3 on my 10.5 MacBook Pro. Should have time later this week...

-------------------------------

Or am I misunderstanding you. Are you running under OSX native virtualbox? I could try this on my MacBook Pro. Do you have setup instructions? Or did you just mount the Palm "CD" ISO file?

If this is your setup, then the .bat files won't work... So not too useful of setup at this time...
I actually figured out that the Command/ Keys are the Host keys when using the Mac OS X version of Virtual Box. The Mouse section works the same for me. & most of the Keyboard sections works just fine on my Mac.

I'm using VirtualBox & got the instructions from this post. Pretty straightforward. Had everything up & running within about 10 minutes tops (Includes time it took to download everything).

Quote:
Originally Posted by czechdev View Post
Hi there,
though the SDK is a Windows-only application, the Emulator can be run also on Linux or Mac OS (running the rest of the SDK is another thing...). You need to install the SDK via Wine and then run the VirtualBox image.

Here is a short howto:
1. obtain the SDK
2. download and install VirtualBox including the kernel modules
3. download and install Wine
4. run the Windows installer in Wine
5. after the installation is completed, note the image and grub boot ISO location (default: ~/.wine/drive_c/Program Files/Palm/SDK/share/emulator/images/sdk47/nova-cust-image-sdk47.vmdk and ~/.wine/drive_c/Program Files/Palm/SDK/share/emulator/images/sdk47/grub.iso)
6. start VirtualBox
7. create a new Debian machine; specify the .vmdk file as a source image and grub.iso as a CD-ROM boot file (and note the machine name)
8. run the following command to enable HVGA framebuffer resolution in VirtualBox: VBoxManage setextradata "YourMachineName" "CustomVideoMode1" "320x480x32" (set YourMachineName according to your machine name)
9. your new Palm Pre is ready

After start, the machine should produce kernel command output and then show a glowing Palm logo and finally the Luna environment.
Screenshot at img140. imageshack. us/i/pre3.png/

Last edited by eisnerguy1; 06/28/2009 at 12:34 AM.
eisnerguy1 is offline   Reply With Quote
Old 06/28/2009, 12:33 AM   #11 (permalink)
Member
 
frankos72's Avatar
 
Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
Default

Quote:
Originally Posted by genoahous View Post

To install to a usb attached device use something like:
Code:
palm-install.bat -d usb ~/projects/packages/com.example.app_1.0_all.ipk
Thanks!

I think I'm going to install the samples programs on my Pre so I can play with them when away from a PC so that when I want to do something in my program I'll know right where to "take" the code from.
__________________
frankos72
Simple Bible - Simple Bible Pro - Bits of God Website
My Day Job: www.pigstands.com
frankos72 is offline   Reply With Quote
Old 06/28/2009, 12:34 AM   #12 (permalink)
Member
 
PreInsiders's Avatar
 
Join Date: May 2009
Location: Californ-I-A
Posts: 73
Likes Received: 0
Thanks: 10
Thanked 29 Times in 14 Posts
Default

Awesome post, linked you back on my blog and I included instructions on how to install it (know people were having trouble with it).

Definitely will be contributing if I stumble across anything more. Very excited about how quickly we're learning about this, I can only hope Palm feels the same way I do.
__________________

Last edited by PreInsiders; 06/28/2009 at 12:43 AM.
PreInsiders is offline   Reply With Quote
Old 06/28/2009, 01:48 AM   #13 (permalink)
Member
 
Join Date: Jun 2009
Location: EU
Posts: 34
Likes Received: 0
Thanks: 67
Thanked 1 Time in 1 Post
Default

are you getting sound in the emulator?
mafia is offline   Reply With Quote
Old 06/28/2009, 02:00 AM   #14 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by mafia View Post
are you getting sound in the emulator?
In the Mojo SDK download thread it was mentioned that audio & video does not work in emulator.

No only that but several features are stubbed out. i.e. The camera app is just a picture of a camera.
genoahous is offline   Reply With Quote
Thanked By: mafia
Old 06/28/2009, 02:07 AM   #15 (permalink)
Member
 
Join Date: Jun 2009
Location: Silicon Valley
Posts: 787
Likes Received: 30
Thanks: 3
Thanked 102 Times in 67 Posts
Default

Quote:
Originally Posted by genoahous View Post
I've not tried this yet, but as I understand it the install script can take either the application path or the name for the .ipk file.

Run the palm-install.bat without any command line parameters for it's usage display. This works for most of the .bat files.

To install to a usb attached device use something like:
Code:
palm-install.bat -d usb ~/projects/packages/com.example.app_1.0_all.ipk
I haven't been able to do that - it never finds the usb attached device.
mosdl is offline   Reply With Quote
Old 06/28/2009, 02:21 AM   #16 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by mosdl View Post
I haven't been able to do that - it never finds the usb attached device.
It might only work when Prē is in developer mode. Have you tried turning it on first?

Note: This is a guess on my part, as I've yet to try it.

You might want to ask in the "Mojo SDK download?" thread, as there are more people able to answer this there.
genoahous is offline   Reply With Quote
Old 06/29/2009, 04:54 AM   #17 (permalink)
Member
 
Join Date: Dec 2006
Posts: 293
Likes Received: 0
Thanks: 8
Thanked 7 Times in 6 Posts
Default

Is there a way to change the orientation of the emulator to imitate tilting of the phone in browser mode lets say???
__________________
Cingular Treo 750||ATT WM6 ROM||AT&T Blue SIM||1GB SanDisk Card||
prabhg is offline   Reply With Quote
Old 07/03/2009, 09:04 AM   #18 (permalink)
Member
 
Join Date: Jul 2008
Posts: 42
Likes Received: 1
Thanks: 4
Thanked 3 Times in 3 Posts
Default Palm-Install.bat getting stuck!



I'm getting stuck when I do,palm install (pacakge to be installed) to bring an application to my palm emulator. It says it's connecting to the device but it gets stuck there but when I do the
palm install -d tcp -l it connects and gives me all the applications that are installed in my emulator.
Any help would be appreciated.
Thx!


UPDATE: I was able to fix it. I did install-palm -d tcp PacakageDirectory.
Apparently, when you leave that out it doesn't automatically know that you have your emulator and it doenst know where to send it.

Last edited by hellbinder; 07/03/2009 at 09:38 AM.
hellbinder is offline   Reply With Quote
Old 07/07/2009, 05:08 PM   #19 (permalink)
Member
 
Complex Pants's Avatar
 
Join Date: May 2009
Location: Cincinnati, OH
Posts: 1,648
Likes Received: 0
Thanks: 114
Thanked 243 Times in 163 Posts
Default

So my mouse will not interact with the emulator. I set the emulator up using this thread: http://forums.precentral.net/web-os-...ownload-6.html

Also, when I try to run any of the batch files in the bin folder from a DOS shell cmd line, I get this:

Code:
\Palm\SDK\share\jars\%j> was unexpected at this time
any thoughts?
Complex Pants is offline   Reply With Quote
Old 07/08/2009, 03:02 AM   #20 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
Likes Received: 0
Thanks: 2
Thanked 18 Times in 8 Posts
Default

Quote:
Originally Posted by Complex Pants View Post
So my mouse will not interact with the emulator. I set the emulator up using this thread: http://forums.precentral.net/web-os-...ownload-6.html

Also, when I try to run any of the batch files in the bin folder from a DOS shell cmd line, I get this:

Code:
\Palm\SDK\share\jars\%j> was unexpected at this time
any thoughts?
Sounds like install problems. This is a guess on my part...

You might want to ask in the "Mojo SDK download?" thread, as there are more people able to answer there.
genoahous is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0