Post: [PPC] Cbuf Keyboard Script
07-11-2014, 09:47 PM #1
Notorious
Caprisuns Is Back
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU,

I have wanted to make an eboot from this but I never got time and I am taking a break from modding so I felt like I want to release some things before I go. So I hope you all enjoy this! It binds keyboard to dpad down!

Script:
    
fps_monitor: #Store this in FPS
li r3, 0
li r4, 0x15
bl 0xD1CD8 //KeyIsDown(int key)
cmpwi r3, 0
beq 0x84
bl 0x1FCF20
b 0x84

__main: # Store this at 0x1FCF20
lis r4, 0x73
addic r4, r4, 0x3830 //0x733830 - title
lis r5, 0x73
addic r5, r5, 0x3870 //0x733870 - preset
li r6, 0x20 //maxlength
li r7, 0
lis r8, 0x72
addic r8, r8, 0xDCE8 //0x72DCE8
lis r9, 0x72
addic r9, r9, 0x39A0 //0x7239A0
bl 0x26F5BC //Open Keyboard Address
b WaitResult

WaitResult:
lis r3, 0x73
lwz r3, 0x145C(r3) //0x73145C
cmpwi r3, 0
bne WaitResult

GetResult:
li r3, 0 //client
lis r4, 0x29F
addic r4, r4, 0x0E22 //0x29F0E22
bl 0x1DB240

EndOfFunc:
blr


Credits:
Vezah - Keyboard Addresses
BadLuckBrian - Teaching me PPC
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Notorious for this useful post:

-JM-, Sabotage, moxl, NickBeHaxing, Swaqq, Fatality
07-12-2014, 01:50 AM #2
SC58
Former Staff
Originally posted by Prime
Hello NGU,

I have wanted to make an eboot from this but I never got time and I am taking a break from modding so I felt like I want to release some things before I go. So I hope you all enjoy this! It binds keyboard to dpad down!

Script:
    
fps_monitor: #Store this in FPS
li r3, 0
li r4, 0x15
bl 0xD1CD8 //KeyIsDown(int key)
cmpwi r3, 0
beq 0x84
bl 0x1FCF20
b 0x84

__main: # Store this at 0x1FCF20
lis r4, 0x73
addic r4, r4, 0x3830 //0x733830 - title
lis r5, 0x73
addic r5, r5, 0x3870 //0x733870 - preset
li r6, 0x20 //maxlength
li r7, 0
lis r8, 0x72
addic r8, r8, 0xDCE8 //0x72DCE8
lis r9, 0x72
addic r9, r9, 0x39A0 //0x7239A0
bl 0x26F5BC //Open Keyboard Address
b WaitResult

WaitResult:
lis r3, 0x73
lwz r3, 0x145C(r3) //0x73145C
cmpwi r3, 0
bne WaitResult

GetResult:
li r3, 0 //client
lis r4, 0x29F
addic r4, r4, 0x0E22 //0x29F0E22
bl 0x1DB240

EndOfFunc:
blr


Credits:
Vezah - Keyboard Addresses
BadLuckBrian - Teaching me PPC


Nice to see you did it on mw3 a bit ghetto done not the real way but i suppose it work plus the ppc it a bit eww :p lol could be codded a lil bit better but i guess it work the way it is :p
07-12-2014, 09:52 AM #3
Turk_Warrior
League Champion
Originally posted by SC58 View Post
Nice to see you did it on mw3 a bit ghetto done not the real way but i suppose it work plus the ppc it a bit eww :p lol could be codded a lil bit better but i guess it work the way it is :p


its called learning SC58 i will hope one day i will able to do this PC is what i need to first get this going as i have no money to buy one..
07-12-2014, 11:21 AM #4
Notorious
Caprisuns Is Back
Originally posted by SC58 View Post
Nice to see you did it on mw3 a bit ghetto done not the real way but i suppose it work plus the ppc it a bit eww :p lol could be codded a lil bit better but i guess it work the way it is :p

haha yah I know it a bit ghetto I am still learning :p
07-14-2014, 07:21 PM #5
Notorious
Caprisuns Is Back
maybe I will convert this to the memory and make a full tut for you all to get it working, when I get time later.
07-25-2014, 07:45 PM #6
PPC?
Nice

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo