Etymology
Today it means: In a half-witted manner. Full definition →
From half-witted + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.