Mercurial > sdl-ios-xcode
view Xcode/TemplatesForProjectBuilder/SDL Custom Cocoa Application/MyCustomView.m @ 3260:85bf3f297b5c
Kenneth Bull to SDL
I noticed in trunk/SDL/src/video/win32/SDL_win32events.c, in this code here...
... if the device handle isn't found in mice[], which it won't be if
the mouse was plugged in after SDL_Init, then you end up with an
uninitialized value in index, which is then passed to various
SDL_SendMouse* functions.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Sep 2009 16:04:44 +0000 |
parents | d63e9f5944ae |
children |
line wrap: on
line source
// // MyCustomView.m // SDL Custom View App // // Created by Darrell Walisser on Fri Jul 18 2003. // Copyright (c) 2003 __MyCompanyName__. All rights reserved. // #import "MyCustomView.h" @implementation MyCustomView - (id)initWithFrame:(NSRect)frame { self = [ super initWithFrame:frame ]; if (self) { // Initialization code here. } return self; } - (void)drawRect:(NSRect)rect { // Drawing code here. } - (BOOL)mouseDownCanMoveWindow { // If you use textured windows, this disables // moving the window by dragging in the view return NO; } @end