Skip to content

Keyboard reading in oric_hw.pas #64

@DJChloe

Description

@DJChloe

if you press the "a" key on a french keyboard, the key is never treated in the oric emulator.
event.arcade is triggered to true

Solved removing the "else" in eventos_oric procedure :

procedure eventos_oric;
begin
if event.arcade then begin
if arcade_input.up[0] then key_row[4]:=(key_row[4] and $f7) else key_row[4]:=(key_row[4] or 8);
if arcade_input.down[0] then key_row[4]:=(key_row[4] and $bf) else key_row[4]:=(key_row[4] or $40);
if arcade_input.left[0] then key_row[4]:=(key_row[4] and $df) else key_row[4]:=(key_row[4] or $20);
if arcade_input.right[0] then key_row[4]:=(key_row[4] and $7f) else key_row[4]:=(key_row[4] or $80);
end; //else removed here
if event.keyboard then
begin
//Row 0
if keyboard[KEYBOARD_7] then key_row[0]:=(key_row[0] and $fe) else key_row[0]:=(key_row[0] or 1);

thk you for your nice emulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions