Blender V2.61 - r43446
|
#import <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include "GHOST_SystemCocoa.h"
#include "GHOST_DisplayManagerCocoa.h"
#include "GHOST_EventKey.h"
#include "GHOST_EventButton.h"
#include "GHOST_EventCursor.h"
#include "GHOST_EventWheel.h"
#include "GHOST_EventTrackpad.h"
#include "GHOST_EventDragnDrop.h"
#include "GHOST_EventString.h"
#include "GHOST_TimerManager.h"
#include "GHOST_TimerTask.h"
#include "GHOST_WindowManager.h"
#include "GHOST_WindowCocoa.h"
#include "AssertMacros.h"
Go to the source code of this file.
#define FIRSTFILEBUFLG 512 |
Definition at line 449 of file GHOST_SystemCocoa.mm.
anonymous enum |
Definition at line 76 of file GHOST_SystemCocoa.mm.
anonymous enum |
Definition at line 145 of file GHOST_SystemCocoa.mm.
anonymous enum |
Definition at line 196 of file GHOST_SystemCocoa.mm.
anonymous enum |
Definition at line 201 of file GHOST_SystemCocoa.mm.
anonymous enum |
NSEventTypeGesture | |
NSEventTypeMagnify | |
NSEventTypeSwipe | |
NSEventTypeRotate | |
NSEventTypeBeginGesture | |
NSEventTypeEndGesture |
Definition at line 425 of file GHOST_SystemCocoa.mm.
static GHOST_TButtonMask convertButton | ( | int | button | ) | [static] |
Definition at line 210 of file GHOST_SystemCocoa.mm.
References GHOST_kButtonMaskButton4, GHOST_kButtonMaskButton5, GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, and GHOST_kButtonMaskRight.
Referenced by GHOST_SystemCocoa::handleMouseEvent(), and GHOST_SystemCocoa::handleWindowEvent().
static GHOST_TKey convertKey | ( | int | rawCode, |
unichar | recvChar, | ||
UInt16 | keyAction | ||
) | [static] |
Converts Mac rawkey codes (same for Cocoa & Carbon) into GHOST key codes
rawCode | The raw physical key code |
recvChar | the character ignoring modifiers (except for shift) |
Definition at line 235 of file GHOST_SystemCocoa.mm.
References GHOST_kKey0, GHOST_kKey1, GHOST_kKey2, GHOST_kKey3, GHOST_kKey4, GHOST_kKey5, GHOST_kKey6, GHOST_kKey7, GHOST_kKey8, GHOST_kKey9, GHOST_kKeyA, GHOST_kKeyAccentGrave, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyComma, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF1, GHOST_kKeyF10, GHOST_kKeyF11, GHOST_kKeyF12, GHOST_kKeyF13, GHOST_kKeyF14, GHOST_kKeyF15, GHOST_kKeyF16, GHOST_kKeyF17, GHOST_kKeyF18, GHOST_kKeyF19, GHOST_kKeyF2, GHOST_kKeyF20, GHOST_kKeyF3, GHOST_kKeyF4, GHOST_kKeyF5, GHOST_kKeyF6, GHOST_kKeyF7, GHOST_kKeyF8, GHOST_kKeyF9, GHOST_kKeyHome, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyMinus, GHOST_kKeyNumpad0, GHOST_kKeyNumpad1, GHOST_kKeyNumpad2, GHOST_kKeyNumpad3, GHOST_kKeyNumpad4, GHOST_kKeyNumpad5, GHOST_kKeyNumpad6, GHOST_kKeyNumpad7, GHOST_kKeyNumpad8, GHOST_kKeyNumpad9, GHOST_kKeyNumpadAsterisk, GHOST_kKeyNumpadEnter, GHOST_kKeyNumpadMinus, GHOST_kKeyNumpadPeriod, GHOST_kKeyNumpadPlus, GHOST_kKeyNumpadSlash, GHOST_kKeyPeriod, GHOST_kKeyQuote, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyTab, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, kVK_ANSI_0, kVK_ANSI_1, kVK_ANSI_2, kVK_ANSI_3, kVK_ANSI_4, kVK_ANSI_5, kVK_ANSI_6, kVK_ANSI_7, kVK_ANSI_8, kVK_ANSI_9, kVK_ANSI_Keypad0, kVK_ANSI_Keypad1, kVK_ANSI_Keypad2, kVK_ANSI_Keypad3, kVK_ANSI_Keypad4, kVK_ANSI_Keypad5, kVK_ANSI_Keypad6, kVK_ANSI_Keypad7, kVK_ANSI_Keypad8, kVK_ANSI_Keypad9, kVK_ANSI_KeypadClear, kVK_ANSI_KeypadDecimal, kVK_ANSI_KeypadDivide, kVK_ANSI_KeypadEnter, kVK_ANSI_KeypadMinus, kVK_ANSI_KeypadMultiply, kVK_ANSI_KeypadPlus, kVK_Delete, kVK_DownArrow, kVK_End, kVK_Escape, kVK_F1, kVK_F10, kVK_F11, kVK_F12, kVK_F13, kVK_F14, kVK_F15, kVK_F16, kVK_F17, kVK_F18, kVK_F19, kVK_F2, kVK_F20, kVK_F3, kVK_F4, kVK_F5, kVK_F6, kVK_F7, kVK_F8, kVK_F9, kVK_ForwardDelete, kVK_Home, kVK_ISO_Section, kVK_LeftArrow, kVK_Mute, kVK_PageDown, kVK_PageUp, kVK_Return, kVK_RightArrow, kVK_Space, kVK_Tab, kVK_UpArrow, kVK_VolumeDown, and kVK_VolumeUp.
Referenced by GHOST_SystemCocoa::handleKeyEvent().
int GHOST_HACK_getFirstFile | ( | char | buf[FIRSTFILEBUFLG] | ) |
Definition at line 454 of file GHOST_SystemCocoa.mm.
References g_firstFileBuf, and g_hasFirstFile.
Definition at line 507 of file GHOST_SystemCocoa.mm.
char g_firstFileBuf[512] [static] |
Definition at line 451 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
bool g_hasFirstFile = false [static] |
Definition at line 450 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().