feat: accent and dieresi characters properly detected
This commit is contained in:
parent
6b289eecfd
commit
ea6745e30d
5 changed files with 14 additions and 2 deletions
|
@ -22,6 +22,7 @@ namespace Domain {
|
||||||
_readers.Add(new AObertaReader(_history));
|
_readers.Add(new AObertaReader(_history));
|
||||||
_readers.Add(new EObertaReader(_history));
|
_readers.Add(new EObertaReader(_history));
|
||||||
_readers.Add(new OObertaReader(_history));
|
_readers.Add(new OObertaReader(_history));
|
||||||
|
_readers.Add(new IDieresiReader(_history));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateInput() {
|
public void UpdateInput() {
|
||||||
|
|
|
@ -3,6 +3,6 @@ using System.Linq;
|
||||||
|
|
||||||
namespace Domain.Input {
|
namespace Domain.Input {
|
||||||
public class EObertaReader : SequentialInputReader {
|
public class EObertaReader : SequentialInputReader {
|
||||||
public EObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x45 }) { }
|
public EObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x45 }, 0x10, false) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
8
Assets/Scripts/Domain/Input/IDieresiReader.cs
Normal file
8
Assets/Scripts/Domain/Input/IDieresiReader.cs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace Domain.Input {
|
||||||
|
public class IDieresiReader : SequentialInputReader {
|
||||||
|
public IDieresiReader(KeyHistory history) : base(history, new List<int>{ 0xDE, 0x49 }, 0x10, true) { }
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Scripts/Domain/Input/IDieresiReader.cs.meta
Normal file
3
Assets/Scripts/Domain/Input/IDieresiReader.cs.meta
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2a92ca1acc52425f8505b204a7ebc772
|
||||||
|
timeCreated: 1713294175
|
|
@ -3,6 +3,6 @@ using System.Linq;
|
||||||
|
|
||||||
namespace Domain.Input {
|
namespace Domain.Input {
|
||||||
public class OObertaReader : SequentialInputReader {
|
public class OObertaReader : SequentialInputReader {
|
||||||
public OObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x4F }) { }
|
public OObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x4F }, 0x10, false) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue