Sponsored Links

Sponsored Links

PS3 LibMove v0.1 for PlayStation Move Homebrew by Deroad Out


Sponsored Links
87w ago - Following up on his previous release, PlayStation 3 developer deroad has made available what he calls PS3 LibMove version 0.1 for introducing PlayStation Move homebrew support followed by a PS Vibe Mode Edition below.

Download: [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links]

To quote from his blog: I wanted to release this lib because someone would find it useful. i wrote some things, but most of the stuff were written by KaKaRoTo and bigboss.

This lib has been tested and works. for any bug report, please write to me on github or send me an email.

libmove for PSL1GHT V2

This lib will be installed inside the PORTLIBS

Authors

  • Deroad - libmove.cpp/.h movebuttons.h
  • Jose Ramos Marquez (bigboss) - moveutil.cpp/.h spursutil.cpp/.h
  • Youness Alaoui (KaKaRoTo) - moveutil.cpp/.h spursutil.cpp/.h

Changelog:

* 0.1
initial release

* 0.2
Fixed heap overflow (thanks to an anonymous girl? )

Linking

Add these libs on your makefile to compile your homebrew.

[Register or Login to view code]

License

This lib is released under BSD License.

Example

[Register or Login to view code]

Shortly following, deroad has also made available a PS Vibe Move Edition stating the following:

This homebrew should be only for ladies.. well what it does? it simple enable the rumble on the PS Move. you can choose the intensity with the trigger and then press the action button to keep that.. this homebrew should work on any TV.

v1.01 Changelog:

  • Fixed the blackscreen issue. now it should work.

What is libmove ? (via psxbrew.net/wiki/How_to_use_libmove)

Is a simple lib that allows to use the PlayStation Move controller on the PS3 through PSL1GHT (V2). This lib works only with the PlayStation Eye.

How to use it

Include

It's quite simple to use. First thing is including the lib into the source code.

[Register or Login to view code]

You don't need any other header. that one include all the things.

Initialise libmove

then you need to initialise it:

[Register or Login to view code]

This function return LIBMOVE_ERROR if something went wrong. If everything is fine, that returns LIBMOVE_OK. This can be an example of how to use this:

[Register or Login to view code]

End libmove

To stop the lib, you can simply call this function. it will return LIBMOVE_ERROR if something went wrong. If everything is fine, that returns LIBMOVE_OK.

[Register or Login to view code]

Get Gyroscope values

To get the gyroscope values (x,y,z axis) you can use this function:

[Register or Login to view code]

This piece of code return the x,y,z float value from the first ps move connected. You can use this function to track a cursor into the code in this way:

[Register or Login to view code]

Get the real position of the controller

you can get the controller position also through the 3D position:

[Register or Login to view code]

this time you get the ball position compared to the distance from the Playstation Eye.

Calibrate the controller

Calibrating the controller is quite simple. you need only need to know what controller and then call this:

[Register or Login to view code]

Get controller buttons

To get the controller buttons, you need to know what number of the controller get. In the example is always the first controller (PLAYSTATION_MOVE_PAD_0).

[Register or Login to view code]

All the BTN_* return 1 (true) if the button is pressed, otherwise return 0 (false). An example:

[Register or Login to view code]

There is also the trigger value (ANA_T). This returns a value between 0x00 and 0xff. 0x00 is when is not pressed, 0xff is the max value. You can also use BTN_T to only know if it is pressed or not (it will return 1 also if the value is at the least 0x01, but also with any value between 0x01 and 0xff).

[Register or Login to view code]

Makefile

To compile with this lib, you need to add the following flags:

[Register or Login to view code]






Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!

Comments 2 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles. Thanks!

helenwicox1's Avatar
#2 - helenwicox1 - 87w ago
Nice news.

B4rtj4h's Avatar
#1 - B4rtj4h - 87w ago
Nice Was waiting for some homebrew that could use the Move.

Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News