Posted Wednesday, 29 July, 2009 - 22:13 by the Fiddler
This is a known issue: the Keyboard.KeyDown does not use the .Net convention (object sender, EventArgs e) which means F# cannot apply its syntactic sugar.
The short-term solution is to use the add_KeyDown() method instead. OpenTK.Input is being reworked in SVN trunk to fix those issues: the final API will be closer to XNA.
Comments
Re: How to use KeyDownEvent in F#
Looks nice!
Is this GLControl maximized or GameWindow?
Re: How to use KeyDownEvent in F#
This is a known issue: the Keyboard.KeyDown does not use the .Net convention (
object sender, EventArgs e) which means F# cannot apply its syntactic sugar.The short-term solution is to use the add_KeyDown() method instead. OpenTK.Input is being reworked in SVN trunk to fix those issues: the final API will be closer to XNA.
Re: How to use KeyDownEvent in F#
the Fiddler: Ok, thanks
objarni: It uses GameWindow.
- Gekko