mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
Implement wiimote IR emulation with the mouse without using the pointer motion events. Hopefully this removes some of the overhead from the X event loops. One downside is that the IR emulation will not work until another event on the window has occured. Although this is minor, usually an event happens before you need the IR pointer.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5040 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e4dcdf796f
commit
78f8fe2e85
3 changed files with 18 additions and 26 deletions
|
@ -62,15 +62,6 @@ void TiltToAccelerometer(int &_x, int &_y, int &_z, STiltData &_TiltData);
|
|||
void AdjustAngles(int &Roll, int &Pitch);
|
||||
void RotateIRDot(int &_x, int &_y, STiltData &_TiltData);
|
||||
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
struct MousePosition
|
||||
{
|
||||
int x, y;
|
||||
int WinWidth, WinHeight;
|
||||
};
|
||||
extern MousePosition MousePos;
|
||||
#endif
|
||||
|
||||
// Accelerometer
|
||||
//void PitchAccelerometerToDegree(u8 _x, u8 _y, u8 _z, int &_Roll, int &_Pitch, int&, int&);
|
||||
//float AccelerometerToG(float Current, float Neutral, float G);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue