• Home
  • Downloads
  • EBOOT Fixes
  • Forums
  • New Posts
  • Register
    • Welcome, Register Now! 
    • Premium VIP Membership
    • PS3 Sticky
      • PS3 CFW & MFW
      • PS3 Debug Firmware
      • PS3 Decrypted PSN Links for CFW
      • PS3 Downloads
      • PS3 EBOOT.BIN Original File Links
      • PS3 Firmware
      • PS3 Game Releases List
      • PS3 Guides & Tutorials
      • PS3 Hacking Guides and Tutorials
      • PS3 Hacks & JailBreak
      • PS3 Help & Support
      • PS3 JailBreak Game Compatibility List
      • PS3 JB2 / True Blue (TB) Game Links
      • PS3 multiMAN Updates
      • PS3 Resources
      • PS3 Reviews
      • PS3 Save Files Repository
      • PS3 Themes
      • PS3 Trophies List
      • PS3 Videos
      • PS Vita Trophies List
    • Quick Links
      • Affiliates
      • Contact Us
      • FAQ
      • Post News
      • Site Rules
      • Tag Cloud
 

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

Category: PS3 Hacks & JailBreak  By: PS3 News - (devram0.blogspot.co.uk)
Tags: ps3 libmove libmove v0.1 playstation move homebrew deroad psl1ght sdk ps vibe

19w 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: PS3 LibMove v0.1 / PS Vibe Move Edition v1.00 (Signed) PKG / PS Vibe Move Edition v1.00 (Unsigned) PKG / PS Vibe Move Edition v1.01 (Signed) PKG / PS Vibe Move Edition v1.01 (Unsigned) PKG / PS Vibe Move Edition v1.02 (Signed) / PS Vibe Move Edition v1.02 (Unsigned) PKG / GIT

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.

-lmove -lgem -lcamera -lspurs
License

This lib is released under BSD License.

Example

	#include <libmove/libmove.h>
	int main(s32 argc, const char* argv[]){
		movePadData data;
		init_move();
		while(1){
			getMovePadData(&data);
			if(data.BTN_ACTION)
				calibrate_move();
			}else if(data.BTN_T){
				goto end;
			}
		}
	end:
		end_move();	
	}
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.

#include <libmove/libmove.h>
You don't need any other header. that one include all the things.

Initialise libmove

then you need to initialise it:


initLibMove();
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:

if(initLibMove() == LIBMOVE_ERROR){
//Something went wrong
return -1;
}else{
//Do something..
}
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.


initLibMove();
Get Gyroscope values

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

float x ,y ,z;
getGyroPosition(PLAYSTATION_MOVE_PAD_0, &x, &y, &z);
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:

//outside the loop:
float x = screen_width/2 ,y = screen_height/2 ,z = 0; //this to get the pointer to the centre of the screen
 
// inside the loop
float x1 ,y1 ,z1;
getGyroPosition(PLAYSTATION_MOVE_PAD_0, &x1, &y1, &z1);
//all the gyroscope values when the move is not moving, are lower then -+2
//this means that when you move the controller you get higher values then abs(+-2) = +2
if(abs(x1) > 2)
x += x1;
if(abs(y1) > 2)
y += y1;
if(abs(z1) > 2)
z += z1;
//in this way you update the values with the new position only if you are actually moving the controller
Get the real position of the controller

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

float x ,y ,z;
getGyroPosition(PLAYSTATION_MOVE_PAD_0, &x, &y, &z);
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:

calibrateMove(PLAYSTATION_MOVE_PAD_0);
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).

movePadData movePad;
getMovePadData(PLAYSTATION_MOVE_PAD_0, &movePad);

movePadData is a struct that has the following buttons:

/* Button information */
BTN_SELECT;
BTN_T;
BTN_ACTION;
BTN_START;
BTN_TRIANGLE;
BTN_CIRCLE;
BTN_CROSS;
BTN_SQUARE;
/* Analog nub information */
ANA_T;
All the BTN_* return 1 (true) if the button is pressed, otherwise return 0 (false). An example:

//somewhere in the code
movePadData movePad;
 
//somewhere else in the code
getMovePadData(PLAYSTATION_MOVE_PAD_0, &movePad);
if(movePad.BTN_ACTION){ //if the ACTION button is pressed
//do something
}
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).

//somewhere in the code
movePadData movePad;
 
//somewhere else in the code
getMovePadData(PLAYSTATION_MOVE_PAD_0, &movePad);
if(movePad.ANA_T > 0x30){ //if the T button is pressed with the intensity of 0x31 or higher
//do something
}
Makefile

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

LDFLAGS = -lmove -lgem -lcamera -lspurs





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 »

Errors

The following errors occurred with your submission

Okay

Quick Reply Quick Reply

  • Decrease Size
    Increase Size
  • Wrap [QUOTE] tags around selected text
Posting Quick Reply - Please Wait Posting Quick Reply - Please Wait
helenwicox1's Avatar
#2 - helenwicox1 - 18w ago
Reply
Nice news.

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

Page 1 of 1 1

Related PS3 News and PS3 CFW Hacks or JailBreak Articles

• Guide to Install multiMAN PS3 Themes via USB from a PKG File
• Simple PS3Updates v1.6 Build 2 Final PS3 Homebrew App Updated
• Video: Super Pixel Jumper v1.2 PS3 Homebrew Game is Released
• Video: Pointman: The Akkadian Wars PS3 Homebrew Game Arrives
• PSPMinis / PS3Minis / Bite v1.5.1 Update for PS3 is Now Released
• PS3 Fan Control Utility v1.7 for PS3 CFW CEX 3.41 to 4.41 Arrives
Affiliates  NewsNow  Privacy  PS3 CFW & MFW  PS3 Hacks & JailBreak  PS3 Reviews  PS3 Videos  © 2013 PlayStation 3 News

PlayStation 3 Links

• Contact Us E-Mail
• PS3 Affiliates
• PS3 CFW & MFW
• PS3 Debug Firmware
• PS3 Decrypted PSN Links for CFW
• PS3 Downloads
• PS3 EBOOT.BIN Original File Links
• PS3 Firmware
• PS3 Game Releases List
• PS3 Guides & Tutorials
• PS3 Hacking Guides and Tutorials
• PS3 Hacks & JailBreak
• PS3 Help & Support
• PS3 JailBreak Game Compatibility List
• PS3 JB2 / True Blue (TB) Game Links
• PS3 multiMAN Updates
• PS3 News Forums
• PS3 News Site FAQ
• PS3 News Site Advertising FAQ
• PS3 News Site Posting FAQ
• PS3 News Site Privacy FAQ
• PS3 News Site Rules
• PS3 News Site Tag Cloud
• PS3 News Site Terms
• PS3 Resources
• PS3 Reviews
• PS3 Save Files Repository
• PS3 Themes
• PS3 Trophies List
• PS3 Videos
• PS Vita Trophies List

PlayStation 3 News Discussions
PS3 DVDROM can I remarry help? - 37m ago

karpof's Avatar
Quote anyone help me out here thank,, dont want to knacker ps3 thanx ...
By karpof with
 3 Comments »
Introductions: Hello Everyone, I'm New at PS3News.com! - 1h ago

HunterSlayer's Avatar
Quote i noob, tanks...
By HunterSlayer with
 7042 Comments »
PSN Games Decrypted for PS3 Custom Firmware 3.55 by DUPLEX! - 1h ago

orkocattivo's Avatar
Quote Here's what you need to play Metro Last Light on external hdd 3.41 OFW JB : 1 - PS3 OFW 3.41JB (of course) 2 - This eboot.bin http://rghost....
By orkocattivo with
 8172 Comments »
What Are You Most Looking Forward To? - 1h ago

Natepig's Avatar
Quote I bet it takes years, like ps3, if at all....
By Natepig with
 2 Comments »

Latest PlayStation 3 Trophies
Move Street Cricket II: Ace of all trades
Move Street Cricket II: Veteran
Move Street Cricket II: 5 Star
Move Street Cricket II: Velcro Hands

Latest PlayStation Vita Trophies
Men's Room Mayhem: Toilet Trouble
Men's Room Mayhem: Mayhem Master
Men's Room Mayhem: Hygiene Award
Men's Room Mayhem: Sand in the Face

Latest PlayStation 3 Releases
Kamen Rider Battride War Premium TV Sound Edition JPN PS3-HR - 05-24-2013
Tom Clancys H A W X EUR PS3-Googlecus - 05-23-2013
Terraria JPN PS3-HR - 05-23-2013
Kamen Rider Battlide War JPN PS3-Caravan - 05-21-2013

Latest PlayStation 3 Themes
Wolverine Origins PS3 Theme - 05-19-2013
Heavy Rain (Official) Dynamic PS3 Theme - 05-09-2013
Wipeout HD Fury Dynamic PS3 Theme - 05-06-2013
Batman Arkham City Dynamic PS3 Theme - 05-04-2013
  • Contact Us
  • -
  • PS3 News