mirror of https://github.com/mgba-emu/mgba.git
PSP2: Improved controller rumble
This commit is contained in:
parent
b506996d29
commit
74390b4cfc
2
CHANGES
2
CHANGES
|
@ -9,6 +9,8 @@ Bugfixes:
|
|||
- Qt: Fix setting overrides
|
||||
- Qt: Fix cut off tiles and alignment issues in tile viewer
|
||||
- GBA Cheats: Fix GameShark ROM patches
|
||||
Misc:
|
||||
- PSP2: Improved controller rumble
|
||||
|
||||
0.5.1: (2016-10-05)
|
||||
Bugfixes:
|
||||
|
|
|
@ -134,9 +134,11 @@ static void _setRumble(struct mRumble* source, int enable) {
|
|||
rumble->current -= oldLevel;
|
||||
}
|
||||
CircleBufferWrite8(&rumble->history, enable);
|
||||
int small = (rumble->current << 21) / 65793;
|
||||
int big = ((rumble->current * rumble->current) << 18) / 65793;
|
||||
struct SceCtrlActuator state = {
|
||||
rumble->current * 31,
|
||||
0
|
||||
small,
|
||||
big
|
||||
};
|
||||
sceCtrlSetActuator(1, &state);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue