/* Retrieves the current state of a pointer device. */
EFI_STATUS EFIAPI EmuGopSimplePointerGetState(IN EFI_SIMPLE_POINTER_PROTOCOL *This, IN OUT EFI_SIMPLE_POINTER_STATE *State)
/* Retrieves the current state of a pointer device. */
EFI_STATUS EFIAPI EmuGopSimplePointerGetState(IN EFI_SIMPLE_POINTER_PROTOCOL *This, IN OUT EFI_SIMPLE_POINTER_STATE *State)
{
  GOP_PRIVATE_DATA  *Private;
  EFI_STATUS        Status;
  EFI_TPL           OldTpl;
  Private = GOP_PRIVATE_DATA_FROM_POINTER_MODE_THIS (This);
  if (Private->EmuGraphicsWindow == NULL) {
    return EFI_NOT_READY;
  }
  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
  Status = Private->EmuGraphicsWindow->GetPointerState (Private->EmuGraphicsWindow, State);
  gBS->RestoreTPL (OldTpl);
  return Status;
}