OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
InputSimAbsPtr.c File Reference
#include <Uefi.h>
#include <Protocol/AppleEvent.h>
#include <Protocol/AbsolutePointer.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/DebugLib.h>
#include <Library/AppleEventLib.h>
#include <Library/OcCpuLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include "../OpenCanopy.h"
#include "../GuiIo.h"

Go to the source code of this file.

Data Structures

struct  GUI_POINTER_CONTEXT_
 

Macros

#define ABS_DOUBLE_CLICK_RADIUS   25U
 
#define IS_POWER_2(x)
 
#define POINTER_SCALE   1U
 

Enumerations

enum  { PointerUnlocked , PointerLockedSimple , PointerLockedAbsolute }
 

Functions

STATIC VOID InternalQueuePointerEvent (IN OUT GUI_POINTER_CONTEXT *Context, IN UINT8 Type, IN UINT32 X, IN UINT32 Y)
 
BOOLEAN GuiPointerGetEvent (IN OUT GUI_POINTER_CONTEXT *Context, OUT GUI_PTR_EVENT *Event)
 
STATIC VOID EFIAPI InternalAppleEventNotification (IN APPLE_EVENT_INFORMATION *Information, IN VOID *NotifyContext)
 
STATIC VOID EFIAPI InternalUpdateContextAbsolute (IN EFI_EVENT Event, IN OUT VOID *NotifyContext)
 
VOID GuiPointerReset (IN OUT GUI_POINTER_CONTEXT *Context)
 
VOID GuiPointerGetPosition (IN OUT GUI_POINTER_CONTEXT *Context, OUT GUI_PTR_POSITION *Position)
 
VOID GuiPointerSetPosition (IN OUT GUI_POINTER_CONTEXT *Context, IN CONST GUI_PTR_POSITION *Position)
 
GUI_POINTER_CONTEXTGuiPointerConstruct (IN UINT32 DefaultX, IN UINT32 DefaultY, IN UINT32 Width, IN UINT32 Height, IN UINT8 UiScale)
 
VOID GuiPointerDestruct (IN GUI_POINTER_CONTEXT *Context)
 

Detailed Description

This file is part of OpenCanopy, OpenCore GUI.

Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file InputSimAbsPtr.c.

Macro Definition Documentation

◆ ABS_DOUBLE_CLICK_RADIUS

#define ABS_DOUBLE_CLICK_RADIUS   25U

Definition at line 26 of file InputSimAbsPtr.c.

◆ IS_POWER_2

#define IS_POWER_2 ( x)
Value:
(((x) & ((x) - 1)) == 0 && (x) != 0)
UINT16 x
Definition BmfFile.h:83

Definition at line 27 of file InputSimAbsPtr.c.

◆ POINTER_SCALE

#define POINTER_SCALE   1U

Definition at line 29 of file InputSimAbsPtr.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PointerUnlocked 
PointerLockedSimple 
PointerLockedAbsolute 

Definition at line 50 of file InputSimAbsPtr.c.

Function Documentation

◆ GuiPointerConstruct()

GUI_POINTER_CONTEXT * GuiPointerConstruct ( IN UINT32 DefaultX,
IN UINT32 DefaultY,
IN UINT32 Width,
IN UINT32 Height,
IN UINT8 UiScale )

Definition at line 337 of file InputSimAbsPtr.c.

◆ GuiPointerDestruct()

VOID GuiPointerDestruct ( IN GUI_POINTER_CONTEXT * Context)

Definition at line 424 of file InputSimAbsPtr.c.

◆ GuiPointerGetEvent()

BOOLEAN GuiPointerGetEvent ( IN OUT GUI_POINTER_CONTEXT * Context,
OUT GUI_PTR_EVENT * Event )

Definition at line 84 of file InputSimAbsPtr.c.

◆ GuiPointerGetPosition()

VOID GuiPointerGetPosition ( IN OUT GUI_POINTER_CONTEXT * Context,
OUT GUI_PTR_POSITION * Position )

Definition at line 281 of file InputSimAbsPtr.c.

◆ GuiPointerReset()

VOID GuiPointerReset ( IN OUT GUI_POINTER_CONTEXT * Context)

Definition at line 268 of file InputSimAbsPtr.c.

◆ GuiPointerSetPosition()

VOID GuiPointerSetPosition ( IN OUT GUI_POINTER_CONTEXT * Context,
IN CONST GUI_PTR_POSITION * Position )

Definition at line 309 of file InputSimAbsPtr.c.

◆ InternalAppleEventNotification()

STATIC VOID EFIAPI InternalAppleEventNotification ( IN APPLE_EVENT_INFORMATION * Information,
IN VOID * NotifyContext )

Definition at line 116 of file InputSimAbsPtr.c.

◆ InternalQueuePointerEvent()

STATIC VOID InternalQueuePointerEvent ( IN OUT GUI_POINTER_CONTEXT * Context,
IN UINT8 Type,
IN UINT32 X,
IN UINT32 Y )

Definition at line 58 of file InputSimAbsPtr.c.

◆ InternalUpdateContextAbsolute()

STATIC VOID EFIAPI InternalUpdateContextAbsolute ( IN EFI_EVENT Event,
IN OUT VOID * NotifyContext )

Definition at line 174 of file InputSimAbsPtr.c.