Cinder Forum ARCHIVE
The actual code that does not display anything is:
gl::drawStrokedCircle( mYellowCircleLocation, 24.0f, 2.0f);
Your right, if I had left the 'f' off I would get a compile error.
I'll build a small test program and submit it to the new? forum site.
started by khuxley • 7 months ago
I figured out the problem was I had breakpoints set up in the KeyDown and KeyUp methods. I replaced these with Console() trace statements and realized that both the KeyDown and KeyUp events were firing as expected.
I guess it makes sense that the VS 2013 debugger would fail to call the KeyUp function if I was paused on a breakpoint in the KeyDown function then pressed the "Continue" button in the IDE.
However, this did come as a surprise to me since I thought the whole purpose of breakpoints was allowing the programmer to step through their code as it executed.
Anyway, live and learn. I hope someone else finds this useful.
I'm using the "MouseEventsSample" from the awesome PoScene block as boilerplate code to create five interactive objects which respond to different mouse interactions. All is good there.
Where I'm running into trouble is when trying to capture both KeyDown and KeyUp events. My VS 2013 Win32 project compiles fine but my PoScene project fails to recognize both events. It either recognizes KeyDown or KeyUp but not both. I need to capture the state of a modifier key (such as Alt) in order to change the scale of an object when the mouse is dragged.
I've tried an alternate way of connecting the signals as mentioned in this post but it also fails identically.
I've never experienced this problem before with Key events, really simple stuff. I'd appreciate any direction on this. After hammering away at it for several hours I'm completely stumped.
Thanks for any help, everyone.