Skip to content

Commit

Permalink
Enable Patterns for Methods using Pointers
Browse files Browse the repository at this point in the history
This is a huge internal change and cleanup. It may break some
designs but I have attempted to avoid that by choosing defaults.

commit 5f233f93d73205b14cb5d6d7b08845c83dc2b560
Author: Gary Bishop <[email protected]>
Date:   Mon Sep 18 13:03:29 2023 -0400

    Default to no pattern for PointerMethods.

commit e45272ef6c5fab1a507b00975f5a745d2e9d15b6
Author: Gary Bishop <[email protected]>
Date:   Mon Sep 11 14:16:59 2023 -0400

    Update default methods

commit f2b40d4bf88ff41f9413e5d448b6e9b1f442b3b3
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 17:06:24 2023 -0400

    Add preview to scripts.

    Much easier that the renaming hack I was using.

commit b287c434231b79ac57a36d43a1b38d8877cc4f1a
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:30:03 2023 -0400

    Remove a console.log

commit 7a45b3fc91782527327e973f36b8bdfc94c09dcb
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:27:35 2023 -0400

    Attach the Pattern to the Method.

    Now each Method can have a different Pattern if you wish.

commit 7452d83e071b5cced5218b2f54f4cbc66dcbda2e
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:27:08 2023 -0400

    Exploit the new Field prop.

commit ee14257f2075d641c7fac5e3e7b3a4b741ccc9fd
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:25:00 2023 -0400

    Extend Select to take a function

    This allows simplication elsewhere. I added several new
    Prop types to exploit this.

commit cd1992ea2814b8d3d2501606814dd21ecbb27142
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:24:06 2023 -0400

    Throw rather than returning null.

    I can't handle that case anyway.

commit 4de7ca76f79357aff4b642da27bc2bb40db7c059
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:23:37 2023 -0400

    Clear and type allFields

commit 61bee055029e50aec68d2b749f3c5aaa07c733e6
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:22:58 2023 -0400

    Tweak for diagnostics

commit f798fdac8584d8258a5d208dbef097460622f194
Author: Gary Bishop <[email protected]>
Date:   Thu Sep 7 13:22:32 2023 -0400

    debounce is unused.

commit 668723b684d334e04ccc9d5bf9d8da3e3a97fb1b
Author: Gary Bishop <[email protected]>
Date:   Sat Sep 2 15:45:24 2023 -0400

    Fix a bug in the key handler

commit a8a2eb3726f6d5a6c730e71bc1f493092fcdbe2f
Author: Gary Bishop <[email protected]>
Date:   Sat Sep 2 15:45:09 2023 -0400

    Fix a bug in data.allFields

commit 9160cb6cf04f7b6a5b9e59f4a7c910a19da00963
Merge: 8393b8e 92855d6
Author: Gary Bishop <[email protected]>
Date:   Sat Sep 2 15:36:28 2023 -0400

    Merge branch 'main' into pointergroups

commit 8393b8ee903ce3c6a2e9d82910be9b0c7e719614
Author: Gary Bishop <[email protected]>
Date:   Sat Aug 26 11:32:50 2023 -0400

    Nits

commit 64443e89a70ef9a772c0e9fe174a9e6ea8477279
Author: Gary Bishop <[email protected]>
Date:   Sat Aug 26 11:18:54 2023 -0400

    Factor out the state machine.

commit 7c7cfc6e8ef4135467f0babc8fc8f5c50a68549c
Author: Gary Bishop <[email protected]>
Date:   Thu Aug 24 18:40:15 2023 -0400

    Fix type error in data.js

commit 76a9c8e333e6268121a37be67bdd4a0621b4a95d
Author: Gary Bishop <[email protected]>
Date:   Thu Aug 24 13:56:29 2023 -0400

    Update default debounce values

commit 195cf0bd76fd52aa8a9bf7198406189a88c9e2ef
Author: Gary Bishop <[email protected]>
Date:   Thu Aug 24 13:56:20 2023 -0400

    Remove logging

commit aaaa2909b2606ebf1878a2c033ad3e1b3c4f9509
Author: Gary Bishop <[email protected]>
Date:   Thu Aug 24 11:02:16 2023 -0400

    Upgrade and conditional debounce display

commit 6d47a0e46b5a79e43cdc0d799de7d285f9552557
Author: Gary Bishop <[email protected]>
Date:   Tue Aug 22 16:23:43 2023 -0400

    Make handlers obey first one wins.

    This unifies handling events from the stream and I think is more
    efficient.

commit d9fcf6aed8b5ca9b6f921d03b31a0fbd2f2a8bd5
Author: Gary Bishop <[email protected]>
Date:   Tue Aug 22 10:11:46 2023 -0400

    WIP: before control inversion

commit e5801e1c420ce86f73930444a10a9dff4df0db00
Merge: 3807ef4 1a92ff4
Author: Gary Bishop <[email protected]>
Date:   Mon Aug 21 10:50:26 2023 -0400

    Merge branch 'main' into pointergroups

commit 3807ef4735fc0c964ca0db49a536279376aadb3b
Author: Gary Bishop <[email protected]>
Date:   Tue Aug 15 13:58:05 2023 -0400

    WIP

commit f26f9d30dc41f82d48571432cdb47057c209b722
Author: Gary Bishop <[email protected]>
Date:   Tue Aug 15 09:04:44 2023 -0400

    WIP: Appears to be working.

    Still need to debounce pointer up/down.

commit d31ab0880466d2cc7ce9162fbf1c5c82aef3574b
Author: Gary Bishop <[email protected]>
Date:   Tue Aug 8 09:00:21 2023 -0400

    WIP: struggling with activation

commit 43c558c482c537aa1cf692c07be253b6b5531004
Author: Gary Bishop <[email protected]>
Date:   Wed Aug 2 09:01:52 2023 -0400

    WIP: needs a rethink

commit ee749f81dcdaca982bbae630aee833e16b431d61
Merge: dc43668 dcc7318
Author: Gary Bishop <[email protected]>
Date:   Fri Jul 21 10:49:24 2023 -0400

    Merge branch 'main' into pointergroups

commit dc43668bd2aa1e03c9eaadb15a90cc2a4e87eaa7
Author: Gary Bishop <[email protected]>
Date:   Thu Feb 23 13:37:11 2023 -0500

    WIP

commit 09c5abb3cc5af928df6b8d318d47980bfa51c930
Author: Gary Bishop <[email protected]>
Date:   Wed Feb 22 11:11:14 2023 -0500

    Update comments

commit 501e267329b445304d9af2e04f5f54c4dd29ff0a
Merge: 5575063 af01807
Author: Gary Bishop <[email protected]>
Date:   Sun Feb 19 19:26:35 2023 -0500

    Merge branch 'main' into pointergroups

commit 557506390b38b57a8be5055620437e1a288a2b29
Merge: 413f083 0827d44
Author: Gary Bishop <[email protected]>
Date:   Thu Jan 19 13:46:04 2023 -0500

    Merge branch 'main' into pointergroups

commit 413f0838f7fd9178efee373da67c67f89b189bc6
Author: Gary Bishop <[email protected]>
Date:   Fri Jan 13 14:42:59 2023 -0500

    WIP

commit 8f7a306b57e35cb29081ba66d345ade3e8f7bfa4
Merge: e157f8d a36523c
Author: Gary Bishop <[email protected]>
Date:   Fri Jan 13 09:18:05 2023 -0500

    Merge branch 'main' into pointergroups

commit e157f8de016c89b0e69816db4179da22579f026a
Merge: 155296e 06d87da
Author: Gary Bishop <[email protected]>
Date:   Wed Jan 11 13:44:00 2023 -0500

    Merge branch 'main' into pointergroups

commit 155296e327a5e7c430d1297fdae500187370ac60
Author: Gary Bishop <[email protected]>
Date:   Tue Jan 10 14:44:04 2023 -0500

    WIP on pointer groups

    Changes in Methods will be required.
  • Loading branch information
gbishop committed Sep 18, 2023
1 parent 92855d6 commit 1ac28e3
Show file tree
Hide file tree
Showing 21 changed files with 801 additions and 428 deletions.
1 change: 0 additions & 1 deletion OS-DPI

This file was deleted.

8 changes: 0 additions & 8 deletions components/access/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import { extender } from "proxy-pants";

/** Carry access data along with Events */
const EventWrapProto = {
access: {},
};
export const EventWrap = extender(EventWrapProto);

/* Allow signaling that a button has changed since last render */
export let AccessChanged = false;

Expand Down
29 changes: 19 additions & 10 deletions components/access/method/defaultMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ export default {
props: {
Name: "2 switch",
Key: "idl6e14meiwzjdcquhgk9",
KeyDebounce: 0.1,
PointerEnterDebounce: 0,
PointerDownDebounce: 0,
Active: "false",
Pattern: "idl83jjo4z0ibii6748fx",
Pattern: "DefaultPattern",
},
children: [
{
className: "KeyHandler",
props: { Signal: "keyup", Debounce: "0.1" },
props: { Signal: "keyup" },
children: [
{
className: "HandlerKeyCondition",
Expand All @@ -34,7 +37,7 @@ export default {
},
{
className: "KeyHandler",
props: { Signal: "keyup", Debounce: "0.1" },
props: { Signal: "keyup" },
children: [
{
className: "HandlerKeyCondition",
Expand All @@ -60,13 +63,16 @@ export default {
props: {
Name: "Pointer dwell",
Key: "idl6wcdmjjkb48xmbxscn",
KeyDebounce: 0,
PointerEnterDebounce: 0.1,
PointerDownDebounce: 0.1,
Active: "false",
Pattern: "idl84lw7z6km7dgni3tn",
Pattern: "idl83jg7qtj9wmyggtxf",
},
children: [
{
className: "PointerHandler",
props: { Signal: "pointerover", Debounce: "0.1" },
props: { Signal: "pointerover" },
children: [
{
className: "ResponderCue",
Expand All @@ -85,7 +91,7 @@ export default {
},
{
className: "PointerHandler",
props: { Signal: "pointerout", Debounce: "0.1" },
props: { Signal: "pointerout" },
children: [
{
className: "ResponderClearCue",
Expand All @@ -96,7 +102,7 @@ export default {
},
{
className: "PointerHandler",
props: { Signal: "pointerdown", Debounce: "0.1" },
props: { Signal: "pointerdown" },
children: [
{
className: "ResponderActivate",
Expand Down Expand Up @@ -131,14 +137,17 @@ export default {
className: "Method",
props: {
Name: "Mouse",
KeyDebounce: 0,
PointerEnterDebounce: 0,
PointerDownDebounce: 0,
Key: "idl84ljjeoebyl94sow87",
Active: "true",
Pattern: "idl83jg7qtj9wmyggtxf",
},
children: [
{
className: "PointerHandler",
props: { Signal: "pointerdown", Debounce: "0.01" },
props: { Signal: "pointerdown" },
children: [
{
className: "ResponderActivate",
Expand All @@ -149,7 +158,7 @@ export default {
},
{
className: "PointerHandler",
props: { Signal: "pointerover", Debounce: "0.1" },
props: { Signal: "pointerover" },
children: [
{
className: "ResponderCue",
Expand All @@ -160,7 +169,7 @@ export default {
},
{
className: "PointerHandler",
props: { Signal: "pointerout", Debounce: "0.1" },
props: { Signal: "pointerout" },
children: [
{
className: "ResponderClearCue",
Expand Down
Loading

0 comments on commit 1ac28e3

Please sign in to comment.