Go Back   PreCentral Forums > Palm Pre Device and Accessories > Palm Pre

Reply
 
LinkBack Thread Tools Display Modes
Old 06/27/2009, 03:17 PM   #1 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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 03:32 PM.
genoahous is offline   Reply With Quote
Old 06/27/2009, 06:00 PM   #2 (permalink)
Member
 
Join Date: Jun 2009
Posts: 152
Thanks: 4
Thanked 36 Times in 17 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, 09:55 PM   #3 (permalink)
Member
 
AnOutsider's Avatar
 
Join Date: Jun 2009
Posts: 367
Thanks: 29
Thanked 90 Times in 58 Posts
Default

Thanks for this. Let the dev work begin!
AnOutsider is offline   Reply With Quote
Old 06/27/2009, 10:41 PM   #4 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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/28/2009, 12:14 AM   #5 (permalink)
Member
 
eisnerguy1's Avatar
 
Join Date: Jun 2009
Location: Connecticut
Posts: 178
Thanks: 92
Thanked 57 Times in 14 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/28/2009, 01:47 AM   #6 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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, 02:05 AM   #7 (permalink)
Member
 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,037
Thanks: 132
Thanked 93 Times in 43 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
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
palmdoc2005 is offline   Reply With Quote
Old 06/28/2009, 02:07 AM   #8 (permalink)
Member
 
frankos72's Avatar
 
Join Date: May 2009
Location: Oklahoma
Posts: 396
Thanks: 53
Thanked 72 Times in 35 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

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
frankos72 is offline   Reply With Quote
Old 06/28/2009, 02:24 AM   #9 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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 2:
Old 06/28/2009, 02:29 AM   #10 (permalink)
Member
 
eisnerguy1's Avatar
 
Join Date: Jun 2009
Location: Connecticut
Posts: 178
Thanks: 92
Thanked 57 Times in 14 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 02:34 AM.
eisnerguy1 is offline   Reply With Quote
Old 06/28/2009, 02:33 AM   #11 (permalink)
Member
 
frankos72's Avatar
 
Join Date: May 2009
Location: Oklahoma
Posts: 396
Thanks: 53
Thanked 72 Times in 35 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

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
frankos72 is offline   Reply With Quote
Old 06/28/2009, 02:34 AM   #12 (permalink)
Member
 
PreInsiders's Avatar
 
Join Date: May 2009
Location: Californ-I-A
Posts: 73
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by PreInsiders; 06/28/2009 at 02:43 AM.
PreInsiders is offline   Reply With Quote
Old 06/28/2009, 03:48 AM   #13 (permalink)
Member
 
Join Date: Jun 2009
Location: EU
Posts: 26
Thanks: 55
Thanked 0 Times in 0 Posts
Default

are you getting sound in the emulator?
mafia is offline   Reply With Quote
Old 06/28/2009, 04:00 AM   #14 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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:
Old 06/28/2009, 04:07 AM   #15 (permalink)
Member
 
Join Date: Jun 2009
Location: Silicon Valley
Posts: 372
Thanks: 3
Thanked 51 Times in 28 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, 04:21 AM   #16 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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, 06:54 AM   #17 (permalink)
Member
 
Join Date: Dec 2006
Posts: 287
Thanks: 8
Thanked 6 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, 11:04 AM   #18 (permalink)
Member
 
Join Date: Jul 2008
Posts: 12
Thanks: 1
Thanked 2 Times in 2 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 11:38 AM.
hellbinder is offline   Reply With Quote
Old 07/07/2009, 07:08 PM   #19 (permalink)
Member
 
Join Date: May 2009
Location: Cincinnati, OH
Posts: 843
Thanks: 66
Thanked 105 Times in 83 Posts
Default

So my mouse will not interact with the emulator. I set the emulator up using this thread: Mojo SDK download?

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, 05:02 AM   #20 (permalink)
Member
 
genoahous's Avatar
 
Join Date: Jun 2009
Location: Monrovia, CA
Posts: 44
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: Mojo SDK download?

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:05 PM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0