------------------------------------------------------------------------
r4188 | acceptthis | 2013-02-04 06:54:57 +0000 (Mon, 04 Feb 2013) | 1 line try to fix osx compile errors. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4186 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
630af9dc7c
commit
5c108ea81f
1 changed files with 4 additions and 9 deletions
|
@ -24,7 +24,6 @@
|
||||||
#include "quakedef.h"
|
#include "quakedef.h"
|
||||||
|
|
||||||
id _p;
|
id _p;
|
||||||
extern float mouse_x,mouse_y;
|
|
||||||
int evcnt = 2;
|
int evcnt = 2;
|
||||||
|
|
||||||
// Jacek: some keys are bogus, my ibook kb lacks keys and apple's docs lack
|
// Jacek: some keys are bogus, my ibook kb lacks keys and apple's docs lack
|
||||||
|
@ -466,8 +465,7 @@ int checkDepth(int d)
|
||||||
|
|
||||||
if ([event type] == NSMouseMoved)
|
if ([event type] == NSMouseMoved)
|
||||||
{
|
{
|
||||||
mouse_x += [event deltaX];
|
IN_MouseMove(0, false, [event deltaX], [event deltaY], 0, 0);
|
||||||
mouse_y += [event deltaY];
|
|
||||||
|
|
||||||
// lame hack to avoid mouse ptr moving to the top of the screen since
|
// lame hack to avoid mouse ptr moving to the top of the screen since
|
||||||
// a click there causes the mouse to appear and lock the event stream
|
// a click there causes the mouse to appear and lock the event stream
|
||||||
|
@ -480,8 +478,7 @@ int checkDepth(int d)
|
||||||
|
|
||||||
if ([event type] == NSLeftMouseDragged)
|
if ([event type] == NSLeftMouseDragged)
|
||||||
{
|
{
|
||||||
mouse_x += [event deltaX];
|
IN_MouseMove(0, false, [event deltaX], [event deltaY], 0, 0);
|
||||||
mouse_y += [event deltaY];
|
|
||||||
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
||||||
CGPointMake(vid.width - 1,vid.height - 1));
|
CGPointMake(vid.width - 1,vid.height - 1));
|
||||||
return;
|
return;
|
||||||
|
@ -489,8 +486,7 @@ int checkDepth(int d)
|
||||||
|
|
||||||
if ([event type] == NSRightMouseDragged)
|
if ([event type] == NSRightMouseDragged)
|
||||||
{
|
{
|
||||||
mouse_x += [event deltaX];
|
IN_MouseMove(0, false, [event deltaX], [event deltaY], 0, 0);
|
||||||
mouse_y += [event deltaY];
|
|
||||||
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
||||||
CGPointMake(vid.width - 1,vid.height - 1));
|
CGPointMake(vid.width - 1,vid.height - 1));
|
||||||
return;
|
return;
|
||||||
|
@ -498,8 +494,7 @@ int checkDepth(int d)
|
||||||
|
|
||||||
if ([event type] == NSOtherMouseDragged)
|
if ([event type] == NSOtherMouseDragged)
|
||||||
{
|
{
|
||||||
mouse_x += [event deltaX];
|
IN_MouseMove(0, false, [event deltaX], [event deltaY], 0, 0);
|
||||||
mouse_y += [event deltaY];
|
|
||||||
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
|
||||||
CGPointMake(vid.width - 1,vid.height - 1));
|
CGPointMake(vid.width - 1,vid.height - 1));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue