DirectCommand IsBrickButtonPressedAsync Method LEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

Returns whether the specified BrickButton is pressed

Namespace: Lego.Ev3.Core
Assembly: Lego.Ev3.Desktop (in Lego.Ev3.Desktop.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Task<bool> IsBrickButtonPressedAsync(
	BrickButton button
)

Return Value

Type: OnlineTask OnlineBoolean 
Whether or not the button is pressed
See Also