Home→Forums→MonoBrick EV3 Firmware→Getting button event in F# with MonoBrickFirmware
I cannot find a way how to fetch the data of button events. This is
the Java code I want to write in F#.
int event = Button.waitForAnyEvent();
flag = false;
let event = MonoBrickFirmware.UserInput.ButtonEvents()
how should I find the same data in monobrick library?
Thanks for using MonoBrick firmware. This is shown in several of the examples on Github – like the touch sensor example found here
I have tried it, it didn’t work in F#.
For instance, in F#, I cannot see the value like EnterPressed. but I see add_EnterPressed and remove_EnterPressed.
what does it mean?
I am no expert in F# – but try to share some code then maybe others might be able to help.
You must be logged in to reply to this topic.