Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of PS3_BlueUSB_user_ver_circlewar by
Revision 19:71f64ff1b86f, committed 2016-03-30
- Comitter:
- baba2357
- Date:
- Wed Mar 30 05:09:54 2016 +0000
- Parent:
- 13:0d6ad1fb03b5
- Commit message:
- A?
Changed in this revision
| User.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/User.cpp Tue Mar 29 12:29:58 2016 +0000
+++ b/User.cpp Wed Mar 30 05:09:54 2016 +0000
@@ -62,24 +62,24 @@
if((ButtonState >> BUTTONR1)&1) {
M=1;
M=M<<15;
- } else if((ButtonState >> BUTTONL2)&1) {
+ } else if((ButtonState >> BUTTONL1)&1) {
M=1;
M=M<<14;
} else {
- if(LSX-128>=0) {
+ if(LSX-127>0) {
M=1;
M=M<<6;
- M+=(LSX-128)/2;
+ M+=(LSX-127)/2;
M=M<<7;
- } else if(LSX-128<0) {
+ } else if(LSX-127<0) {
M+=(-1)*((LSX-128)/2);
if(M==64) M=63;
M=M<<7;
}
- if(LSY-128>=0) {
+ if(LSY-127>0) {
M+=1<<6;
M+=(LSY-128)/2;
- } else if(LSY-128<0) {
+ } else if(LSY-127<0) {
M+=((-1)*(LSY-128)/2);
if(M==64) M=63;
} else M=0;
