Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools
Old 11-11-2024, 10:07 AM   #1
EricTbone
Human being with feelings
 
Join Date: Feb 2013
Posts: 300
Default getchar regression in Windows

Video demonstration.

getchar() with a char argument should return the 1 if that key is pressed.

In Reaper 6.74+ in Windows 10:
  • getchar() returns 97 for the 'a' key
  • getchar(97) always returns 0, regardless of the state of the 'a' key
This works as expected in 6.73.

Implementation clue: getchar(97) returns true for ctrl+'a', but not just 'a'.
EricTbone is offline   Reply With Quote
Old 11-12-2024, 12:35 AM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,802
Default

Confirmed on Windows 10, with US international keyboard layout (but I don't know if that really matters). On macOS 14.7.1 gfx_getchar(char) seems to work just fine.
Tale is offline   Reply With Quote
Old 11-12-2024, 06:38 PM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,809
Default

thanks, fixing!
Justin is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.