---
title: "irCUE Receiver 485"
canonical: "https://docs.cuesystem.com/space/CVCHELP/524353914/irCUE%20Receiver%20485"
format: markdown
---
> Macro (toc)

---

# Properties

**ButtonOffset** of a received code defaults to 0. 

Note: The Address of the receiver is 1. This value is set by hardware and cannot be changed. 

# IsPressed

This ir receiver's function returns true if a remote control's button is pressed, false otherwise. 

#### Syntax 

```visualbasic
Function IsPressed(buttoncode As Long) As Boolean
```

#### Parameters 

buttoncode 

[<u>Long</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long) It is the button code to get a status. 

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is true if the input is pressed, false otherwise. 

# OnPush

This event is generated when a button with a buttoncode is pushed. 

#### Syntax 

```visualbasic
Event OnPush As Process(buttoncode As Long)
```

#### Parameters 

buttoncode 

[<u>Long</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long) It is the button code of the button to be pushed. 

# WaitWhilePressed

This ir receiver's function waits while a remote control's button is pressed and the specified time has not expired. 

#### Syntax 

```visualbasic
Function WaitWhilePressed(
  buttoncode As Long, 
  Optional timeout As Time := _TIME_INFINITE) 
As Boolean
```

#### Parameters 

buttoncode 

[<u>Long</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long) It is the button code to get a status. 

timeout 

[<u>Time</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Time) Optional, defaults to _TIME_INFINITE. It is time to wait while the remote control's button is pressed. 

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is true if the timeout was not expired when the remote control's button was released. It is false if the timeout expired and the input was still pressed.