jacqueline,
@jacqueline@chaos.social avatar

im cooking

badrihippo,
@badrihippo@fosstodon.org avatar

@jacqueline btw why's the ["Long press"] in brackets like that when the others aren't? (I don't know Lua but my Python interpreter makes me think it's a list of one) 👀

jacqueline,
@jacqueline@chaos.social avatar

@badrihippo it's showing them like that because it's trying it pretty-print as valid lua, and that's how you'd write a table key with a space in it.

tho i reckon i'll make the names things more like "long_press", and handle pretty display names at another layer

badrihippo,
@badrihippo@fosstodon.org avatar

@jacqueline ohh makes sense! Because control.hooks.Touchwheel.Down.Repeat, but control.hooks.Touchwheel.Down["Long press"]

badrihippo,
@badrihippo@fosstodon.org avatar

Also @fosstodon we need a lua emoji!

@jacqueline

mike,
@mike@fosstodon.org avatar

@badrihippo Honestly, I'm pretty surprised we don't already have one.

Added :lua:.

That work?

@fosstodon @jacqueline

badrihippo,
@badrihippo@fosstodon.org avatar

@mike @fosstodon @jacqueline looks good, thanks! Yeah I expected it to be there too, but anyway better late than never :lua:

jacqueline,
@jacqueline@chaos.social avatar

@badrihippo oh i hadn't realised that would be the reason. it makes sense. pretty neat!

badrihippo,
@badrihippo@fosstodon.org avatar

@jacqueline well I guess I learnt some Lua today 😇

jacqueline,
@jacqueline@chaos.social avatar

@badrihippo i hope it hooks you!! i love it very much, it's a terrific little language

badrihippo,
@badrihippo@fosstodon.org avatar

@jacqueline I'm on a Lisp roll now, but I will get to Lua someday 😅

(Actually, I've played with Fennel a bit and it's very cool, so another reason to learn Lua)

jacqueline,
@jacqueline@chaos.social avatar

what if

controls.hooks().TouchWheel.Centre = function() ... end  
jacqueline,
@jacqueline@chaos.social avatar

or i guess like... Centre["Long Press"]

aphistic,
@aphistic@advent.social avatar

@jacqueline WTF is a centre?!

buzzyrobin,
@buzzyrobin@chaos.social avatar

@jacqueline configurable haptic response per control when

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • mdbf
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • rosin
  • thenastyranch
  • kavyap
  • cisconetworking
  • tester
  • JUstTest
  • InstantRegret
  • osvaldo12
  • GTA5RPClips
  • cubers
  • tacticalgear
  • ethstaker
  • normalnudes
  • anitta
  • modclub
  • Leos
  • provamag3
  • megavids
  • lostlight
  • All magazines