Commit 2cae1ece authored by Gerard Gascón's avatar Gerard Gascón
Browse files

refactor: made all input readers sequential

parent 5c721a33
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ namespace Domain {
		public CustomInput() {
			_history = new KeyHistory();

			_readers.Add(new CedillaReader());
			_readers.Add(new CedillaReader(_history));
			_readers.Add(new GeminadaReader(_history));
			_readers.Add(new TxReader(_history));
			_readers.Add(new IxReader(_history));
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
using System.Linq;

namespace Domain.Input {
	public class AObertaReader : SequentialInputReader {
	public class AObertaReader : InputReader {
		public AObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x41 }, 0x10, false) { }
	}
}
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
namespace Domain.Input {
using System.Collections.Generic;

namespace Domain.Input {
	public class CedillaReader : InputReader {
		protected override int Key { get; } = 0xBF; //VK_OEM_2 | cedilla
		public CedillaReader(KeyHistory history) : base(history, new List<int>{ 0xBF }) { }
	}
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
using System.Linq;

namespace Domain.Input {
	public class EObertaReader : SequentialInputReader {
	public class EObertaReader : InputReader {
		public EObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x45 }, 0x10, false) { }
	}
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
using System.Linq;

namespace Domain.Input {
	public class GeminadaReader : SequentialInputReader {
	public class GeminadaReader : InputReader {
		public GeminadaReader(KeyHistory history) : base(history, new List<int>{ 76, 0x33, 76 }) { }
	}
}
 No newline at end of file
Loading